Class: QuestionproRails::EmailTemplate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_summaryObject (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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#survey_idObject (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

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end