Class: ConstantContact::Components::UnsubscribeActivity
- Defined in:
- lib/constantcontact/components/tracking/unsubscribe_activity.rb
Instance Attribute Summary collapse
-
#activity_type ⇒ Object
Returns the value of attribute activity_type.
-
#campaign_id ⇒ Object
Returns the value of attribute campaign_id.
-
#contact_id ⇒ Object
Returns the value of attribute contact_id.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#unsubscribe_date ⇒ Object
Returns the value of attribute unsubscribe_date.
-
#unsubscribe_reason ⇒ Object
Returns the value of attribute unsubscribe_reason.
-
#unsubscribe_source ⇒ Object
Returns the value of attribute unsubscribe_source.
Class Method Summary collapse
-
.create(props) ⇒ UnsubscribeActivity
Factory method to create an UnsubscribeActivity object from an array.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Instance Attribute Details
#activity_type ⇒ Object
Returns the value of attribute activity_type
10 11 12 |
# File 'lib/constantcontact/components/tracking/unsubscribe_activity.rb', line 10 def activity_type @activity_type end |
#campaign_id ⇒ Object
Returns the value of attribute campaign_id
10 11 12 |
# File 'lib/constantcontact/components/tracking/unsubscribe_activity.rb', line 10 def campaign_id @campaign_id end |
#contact_id ⇒ Object
Returns the value of attribute contact_id
10 11 12 |
# File 'lib/constantcontact/components/tracking/unsubscribe_activity.rb', line 10 def contact_id @contact_id end |
#email_address ⇒ Object
Returns the value of attribute email_address
10 11 12 |
# File 'lib/constantcontact/components/tracking/unsubscribe_activity.rb', line 10 def email_address @email_address end |
#unsubscribe_date ⇒ Object
Returns the value of attribute unsubscribe_date
10 11 12 |
# File 'lib/constantcontact/components/tracking/unsubscribe_activity.rb', line 10 def unsubscribe_date @unsubscribe_date end |
#unsubscribe_reason ⇒ Object
Returns the value of attribute unsubscribe_reason
10 11 12 |
# File 'lib/constantcontact/components/tracking/unsubscribe_activity.rb', line 10 def unsubscribe_reason @unsubscribe_reason end |
#unsubscribe_source ⇒ Object
Returns the value of attribute unsubscribe_source
10 11 12 |
# File 'lib/constantcontact/components/tracking/unsubscribe_activity.rb', line 10 def unsubscribe_source @unsubscribe_source end |
Class Method Details
.create(props) ⇒ UnsubscribeActivity
Factory method to create an UnsubscribeActivity object from an array
16 17 18 19 20 21 22 23 24 |
# File 'lib/constantcontact/components/tracking/unsubscribe_activity.rb', line 16 def self.create(props) obj = UnsubscribeActivity.new if props props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key end end obj end |