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