Class: ConstantContact::Components::ExportContacts

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Component

#to_hash, to_hash_value, #to_json

Constructor Details

#initialize(lists = nil) ⇒ ExportContacts

Constructor to create an ExportContacts object

Parameters:

  • lists (Array) (defaults to: nil)
    • array of lists ids



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_namesObject

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_byObject

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_addedObject

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_typeObject

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

#listsObject

Returns the value of attribute lists



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

def lists
  @lists
end

#sort_byObject

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