Class: ConstantContact::Components::AddContactsImportData
- Defined in:
- lib/constantcontact/components/activities/add_contacts_import_data.rb
Instance Attribute Summary collapse
-
#addresses ⇒ Object
Returns the value of attribute addresses.
-
#anniversary ⇒ Object
Returns the value of attribute anniversary.
-
#birthday_day ⇒ Object
Returns the value of attribute birthday_day.
-
#birthday_month ⇒ Object
Returns the value of attribute birthday_month.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#custom_fields ⇒ Object
Returns the value of attribute custom_fields.
-
#email_addresses ⇒ Object
Returns the value of attribute email_addresses.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#home_phone ⇒ Object
Returns the value of attribute home_phone.
-
#job_title ⇒ Object
Returns the value of attribute job_title.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#middle_name ⇒ Object
Returns the value of attribute middle_name.
-
#work_phone ⇒ Object
Returns the value of attribute work_phone.
Instance Method Summary collapse
-
#add_address(address) ⇒ Object
Setter.
-
#add_custom_field(custom_field) ⇒ Object
Setter.
-
#add_email(email_address) ⇒ Object
Setter.
-
#initialize(props = {}) ⇒ AddContactsImportData
constructor
Constructor to create an AddContactsImportData object from the given hash.
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
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
#addresses ⇒ Object
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 |
#anniversary ⇒ Object
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_day ⇒ Object
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_month ⇒ Object
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_name ⇒ Object
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_fields ⇒ Object
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_addresses ⇒ Object
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_name ⇒ Object
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_phone ⇒ Object
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_title ⇒ Object
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_name ⇒ Object
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_name ⇒ Object
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_phone ⇒ Object
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 |