class TXTextControl::ReportingCloud::Template

Holds information about a template in the template storage. @attr_reader template_name [String] The template file name. @attr_reader modified [DateTime] The date and time the template file was

last modified.

@attr_reader size [Integer] The size of the template file in bytes. @author Thorsten Kummerow (@thomerow)

Attributes

modified[R]
size[R]
template_name[R]

Public Class Methods

new(template_name, modified, size) click to toggle source
# File lib/txtextcontrol/reportingcloud/template.rb, line 30
def initialize(template_name, modified, size)
  @template_name = template_name
  if modified.is_a?(DateTime)
    @modified = modified
  else
    @modified = DateTime.iso8601(modified) 
  end
  @size = size
end