Class: ConstantContact::Components::AddContactsImportData

Inherits:
Component
  • Object
show all
Defined in:
lib/constantcontact/components/activities/add_contacts_import_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Constructor Details

#initialize(props = {}) ⇒ AddContactsImportData

Constructor to create an AddContactsImportData object from the given hash

Parameters:

  • props (Hash) (defaults to: {})
    • properties to create object from



18
19
20
21
22
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 18

def initialize(props = {})
  props.each do |key, value|
    send("#{key}=", value) if respond_to? key
  end
end

Instance Attribute Details

#addressesObject

Returns the value of attribute addresses



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def addresses
  @addresses
end

#anniversaryObject

Returns the value of attribute anniversary



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def anniversary
  @anniversary
end

#birthday_dayObject

Returns the value of attribute birthday_day



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def birthday_day
  @birthday_day
end

#birthday_monthObject

Returns the value of attribute birthday_month



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def birthday_month
  @birthday_month
end

#company_nameObject

Returns the value of attribute company_name



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def company_name
  @company_name
end

#custom_fieldsObject

Returns the value of attribute custom_fields



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def custom_fields
  @custom_fields
end

#email_addressesObject

Returns the value of attribute email_addresses



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def email_addresses
  @email_addresses
end

#first_nameObject

Returns the value of attribute first_name



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def first_name
  @first_name
end

#home_phoneObject

Returns the value of attribute home_phone



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def home_phone
  @home_phone
end

#job_titleObject

Returns the value of attribute job_title



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def job_title
  @job_title
end

#last_nameObject

Returns the value of attribute last_name



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def last_name
  @last_name
end

#middle_nameObject

Returns the value of attribute middle_name



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def middle_name
  @middle_name
end

#work_phoneObject

Returns the value of attribute work_phone



10
11
12
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 10

def work_phone
  @work_phone
end

Instance Method Details

#add_address(address) ⇒ Object

Setter



32
33
34
35
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 32

def add_address(address)
  @addresses = [] if @addresses.nil?
  @addresses << address
end

#add_custom_field(custom_field) ⇒ Object

Setter



25
26
27
28
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 25

def add_custom_field(custom_field)
  @custom_fields = [] if @custom_fields.nil?
  @custom_fields << custom_field
end

#add_email(email_address) ⇒ Object

Setter



39
40
41
42
# File 'lib/constantcontact/components/activities/add_contacts_import_data.rb', line 39

def add_email(email_address)
  @email_addresses = [] if @email_addresses.nil?
  @email_addresses << email_address
end