Class: QuestionproRails::Template
- Inherits:
-
Object
- Object
- QuestionproRails::Template
- Defined in:
- lib/questionpro_rails/template.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#template_subject ⇒ Object
readonly
Returns the value of attribute template_subject.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Template
constructor
A new instance of Template.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/questionpro_rails/template.rb', line 4 def id @id end |
#template_subject ⇒ Object (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 |