lib/constantcontact/components/activities/export_contacts.rb in constantcontact-1.0.0 vs lib/constantcontact/components/activities/export_contacts.rb in constantcontact-1.0.1

- old
+ new

@@ -3,28 +3,28 @@ # ConstantContact # # Copyright (c) 2013 Constant Contact. All rights reserved. module ConstantContact - module Components - class ExportContacts < Component - attr_accessor :file_type, :sort_by, :export_date_added, - :export_added_by, :lists, :column_names + module Components + class ExportContacts < Component + attr_accessor :file_type, :sort_by, :export_date_added, + :export_added_by, :lists, :column_names - # Constructor to create an ExportContacts object - # @param [Array] lists - array of lists ids - # @return [ExportContacts] - 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 + # Constructor to create an ExportContacts object + # @param [Array] lists - array of lists ids + # @return [ExportContacts] + 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 - end - end + end + end end \ No newline at end of file