Class: ConstantContact::Components::BounceActivity

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/tracking/bounce_activity.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Instance Attribute Details

#activity_typeObject

Returns the value of attribute activity_type



10
11
12
# File 'lib/constantcontact/components/tracking/bounce_activity.rb', line 10

def activity_type
  @activity_type
end

#bounce_codeObject

Returns the value of attribute bounce_code



10
11
12
# File 'lib/constantcontact/components/tracking/bounce_activity.rb', line 10

def bounce_code
  @bounce_code
end

#bounce_dateObject

Returns the value of attribute bounce_date



10
11
12
# File 'lib/constantcontact/components/tracking/bounce_activity.rb', line 10

def bounce_date
  @bounce_date
end

#bounce_descriptionObject

Returns the value of attribute bounce_description



10
11
12
# File 'lib/constantcontact/components/tracking/bounce_activity.rb', line 10

def bounce_description
  @bounce_description
end

#bounce_messageObject

Returns the value of attribute bounce_message



10
11
12
# File 'lib/constantcontact/components/tracking/bounce_activity.rb', line 10

def bounce_message
  @bounce_message
end

#campaign_idObject

Returns the value of attribute campaign_id



10
11
12
# File 'lib/constantcontact/components/tracking/bounce_activity.rb', line 10

def campaign_id
  @campaign_id
end

#contact_idObject

Returns the value of attribute contact_id



10
11
12
# File 'lib/constantcontact/components/tracking/bounce_activity.rb', line 10

def contact_id
  @contact_id
end

#email_addressObject

Returns the value of attribute email_address



10
11
12
# File 'lib/constantcontact/components/tracking/bounce_activity.rb', line 10

def email_address
  @email_address
end

Class Method Details

.create(props) ⇒ BounceActivity

Factory method to create a BounceActivity object from an array

Parameters:

  • props (Hash)
    • properties to create object from

Returns:



17
18
19
20
21
22
23
24
25
# File 'lib/constantcontact/components/tracking/bounce_activity.rb', line 17

def self.create(props)
  obj = BounceActivity.new
  if props
    props.each do |key, value|
      obj.send("#{key}=", value) if obj.respond_to? key
    end
  end
  obj
end