Class: Keepr::ContactExport

Inherits:
Object
  • Object
show all
Defined in:
lib/keepr/contact_export.rb

Instance Method Summary collapse

Constructor Details

#initialize(accounts, header_options = {}, &block) ⇒ ContactExport

Returns a new instance of ContactExport.

Raises:

  • (ArgumentError)


4
5
6
7
8
9
10
# File 'lib/keepr/contact_export.rb', line 4

def initialize(accounts, header_options = {}, &block)
  raise ArgumentError unless block_given?

  @accounts = accounts
  @header_options = header_options
  @block = block
end

Instance Method Details

#to_file(filename) ⇒ Object



16
17
18
# File 'lib/keepr/contact_export.rb', line 16

def to_file(filename)
  export.to_file(filename)
end

#to_sObject



12
13
14
# File 'lib/keepr/contact_export.rb', line 12

def to_s
  export.to_s
end