Class: ConstantContact::Components::SendActivity

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/tracking/send_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/send_activity.rb', line 10

def activity_type
  @activity_type
end

#campaign_idObject

Returns the value of attribute campaign_id



10
11
12
# File 'lib/constantcontact/components/tracking/send_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/send_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/send_activity.rb', line 10

def email_address
  @email_address
end

#send_dateObject

Returns the value of attribute send_date



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

def send_date
  @send_date
end

Class Method Details

.create(props) ⇒ SendActivity

Factory method to create a SendActivity object from an array

Parameters:

  • props (Hash)
    • properties to create object from

Returns:



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

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