Class: QuestionproRails::Template

Inherits:
Object
  • Object
show all
Defined in:
lib/questionpro_rails/template.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Template

Returns a new instance of Template.



6
7
8
9
# File 'lib/questionpro_rails/template.rb', line 6

def initialize (attributes) 
  @id               = attributes['templateID']
  @template_subject = attributes['templateSubject']          
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/questionpro_rails/template.rb', line 4

def id
  @id
end

#template_subjectObject (readonly)

Returns the value of attribute template_subject.



4
5
6
# File 'lib/questionpro_rails/template.rb', line 4

def template_subject
  @template_subject
end