Class: ConstantContact::Components::ExportContacts
- Defined in:
- lib/constantcontact/components/activities/export_contacts.rb
Instance Attribute Summary collapse
-
#column_names ⇒ Object
Returns the value of attribute column_names.
-
#export_added_by ⇒ Object
Returns the value of attribute export_added_by.
-
#export_date_added ⇒ Object
Returns the value of attribute export_date_added.
-
#file_type ⇒ Object
Returns the value of attribute file_type.
-
#lists ⇒ Object
Returns the value of attribute lists.
-
#sort_by ⇒ Object
Returns the value of attribute sort_by.
Instance Method Summary collapse
-
#initialize(lists = nil) ⇒ ExportContacts
constructor
Constructor to create an ExportContacts object.
Methods inherited from Component
#to_hash, to_hash_value, #to_json
Constructor Details
#initialize(lists = nil) ⇒ ExportContacts
Constructor to create an ExportContacts object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/constantcontact/components/activities/export_contacts.rb', line 17 def initialize(lists = nil) if !lists.nil? @lists = lists end @file_type = 'CSV' @sort_by = 'EMAIL_ADDRESS' @export_date_added = true @export_added_by = true @column_names = ['Email Address', 'First Name', 'Last Name'] end |
Instance Attribute Details
#column_names ⇒ Object
Returns the value of attribute column_names
10 11 12 |
# File 'lib/constantcontact/components/activities/export_contacts.rb', line 10 def column_names @column_names end |
#export_added_by ⇒ Object
Returns the value of attribute export_added_by
10 11 12 |
# File 'lib/constantcontact/components/activities/export_contacts.rb', line 10 def export_added_by @export_added_by end |
#export_date_added ⇒ Object
Returns the value of attribute export_date_added
10 11 12 |
# File 'lib/constantcontact/components/activities/export_contacts.rb', line 10 def export_date_added @export_date_added end |
#file_type ⇒ Object
Returns the value of attribute file_type
10 11 12 |
# File 'lib/constantcontact/components/activities/export_contacts.rb', line 10 def file_type @file_type end |
#lists ⇒ Object
Returns the value of attribute lists
10 11 12 |
# File 'lib/constantcontact/components/activities/export_contacts.rb', line 10 def lists @lists end |
#sort_by ⇒ Object
Returns the value of attribute sort_by
10 11 12 |
# File 'lib/constantcontact/components/activities/export_contacts.rb', line 10 def sort_by @sort_by end |