Class: Txbr::EmailTemplate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project, email_template_id) ⇒ EmailTemplate

Returns a new instance of EmailTemplate.



8
9
10
11
# File 'lib/txbr/email_template.rb', line 8

def initialize(project, email_template_id)
  @project = project
  @email_template_id = email_template_id
end

Instance Attribute Details

#email_template_idObject (readonly)

Returns the value of attribute email_template_id.



6
7
8
# File 'lib/txbr/email_template.rb', line 6

def email_template_id
  @email_template_id
end

#projectObject (readonly)

Returns the value of attribute project.



6
7
8
# File 'lib/txbr/email_template.rb', line 6

def project
  @project
end

Instance Method Details

#each_resource(&block) ⇒ Object



13
14
15
16
# File 'lib/txbr/email_template.rb', line 13

def each_resource(&block)
  return to_enum(__method__) unless block_given?
  template_group.each_resource(&block)
end