Class: Txbr::EmailTemplate
- Inherits:
-
Object
- Object
- Txbr::EmailTemplate
- Defined in:
- lib/txbr/email_template.rb
Instance Attribute Summary collapse
-
#email_template_id ⇒ Object
readonly
Returns the value of attribute email_template_id.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
- #each_resource(&block) ⇒ Object
-
#initialize(project, email_template_id) ⇒ EmailTemplate
constructor
A new instance of EmailTemplate.
Constructor Details
#initialize(project, email_template_id) ⇒ EmailTemplate
Returns a new instance of EmailTemplate.
7 8 9 10 |
# File 'lib/txbr/email_template.rb', line 7 def initialize(project, email_template_id) @project = project @email_template_id = email_template_id end |
Instance Attribute Details
#email_template_id ⇒ Object (readonly)
Returns the value of attribute email_template_id.
5 6 7 |
# File 'lib/txbr/email_template.rb', line 5 def email_template_id @email_template_id end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
5 6 7 |
# File 'lib/txbr/email_template.rb', line 5 def project @project end |
Instance Method Details
#each_resource(&block) ⇒ Object
12 13 14 15 |
# File 'lib/txbr/email_template.rb', line 12 def each_resource(&block) return to_enum(__method__) unless block_given? template_group.each_resource(&block) end |