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)


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

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



14
15
16
# File 'lib/keepr/contact_export.rb', line 14

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

#to_sObject



10
11
12
# File 'lib/keepr/contact_export.rb', line 10

def to_s
  export.to_s
end