Class: QuestionproRails::EmailTemplate
- Inherits:
-
Object
- Object
- QuestionproRails::EmailTemplate
- Defined in:
- lib/questionpro_rails/email_template.rb
Instance Attribute Summary collapse
-
#content_summary ⇒ Object
readonly
Returns the value of attribute content_summary.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#survey_id ⇒ Object
readonly
Returns the value of attribute survey_id.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ EmailTemplate
constructor
A new instance of EmailTemplate.
Constructor Details
#initialize(attributes) ⇒ EmailTemplate
Returns a new instance of EmailTemplate.
6 7 8 9 10 11 |
# File 'lib/questionpro_rails/email_template.rb', line 6 def initialize (attributes) @id = attributes['templateID'] @survey_id = attributes['surveyID'] @title = attributes['title'] @content_summary = attributes['contentSummary'] end |
Instance Attribute Details
#content_summary ⇒ Object (readonly)
Returns the value of attribute content_summary.
4 5 6 |
# File 'lib/questionpro_rails/email_template.rb', line 4 def content_summary @content_summary end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/questionpro_rails/email_template.rb', line 4 def id @id end |
#survey_id ⇒ Object (readonly)
Returns the value of attribute survey_id.
4 5 6 |
# File 'lib/questionpro_rails/email_template.rb', line 4 def survey_id @survey_id end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/questionpro_rails/email_template.rb', line 4 def title @title end |