Class: ConstantContact::Components::CampaignPreview
- Defined in:
- lib/constantcontact/components/email_marketing/campaign_preview.rb
Instance Attribute Summary collapse
-
#from_email ⇒ Object
Returns the value of attribute from_email.
-
#preview_email_content ⇒ Object
Returns the value of attribute preview_email_content.
-
#preview_text_content ⇒ Object
Returns the value of attribute preview_text_content.
-
#reply_to_email ⇒ Object
Returns the value of attribute reply_to_email.
-
#subject ⇒ Object
Returns the value of attribute subject.
Class Method Summary collapse
-
.create(props) ⇒ CampaignPreview
Factory method to create a CampaignPreview object from an array.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#from_email ⇒ Object
Returns the value of attribute from_email
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/campaign_preview.rb', line 10 def from_email @from_email end |
#preview_email_content ⇒ Object
Returns the value of attribute preview_email_content
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/campaign_preview.rb', line 10 def preview_email_content @preview_email_content end |
#preview_text_content ⇒ Object
Returns the value of attribute preview_text_content
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/campaign_preview.rb', line 10 def preview_text_content @preview_text_content end |
#reply_to_email ⇒ Object
Returns the value of attribute reply_to_email
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/campaign_preview.rb', line 10 def reply_to_email @reply_to_email end |
#subject ⇒ Object
Returns the value of attribute subject
10 11 12 |
# File 'lib/constantcontact/components/email_marketing/campaign_preview.rb', line 10 def subject @subject end |
Class Method Details
.create(props) ⇒ CampaignPreview
Factory method to create a CampaignPreview object from an array
17 18 19 20 21 22 23 24 25 |
# File 'lib/constantcontact/components/email_marketing/campaign_preview.rb', line 17 def self.create(props) obj = CampaignPreview.new if props props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key end end obj end |