Sha256: d2651b8794541a7a4019494d0b24cef4f990764db68f8b91da58000c23068285

Contents?: true

Size: 348 Bytes

Versions: 22

Compression:

Stored size: 348 Bytes

Contents

##
# base class for exporters of contact information

module Blackbook::Exporter

  class Base
    ##
    # Override this to convert +contacts+ (an array of hashes) to something more useful. Here, it
    # just returns Blackbook's internal format
    def export( contacts )
      contacts
    end
    
    Blackbook.register :basic, self
  end
end

Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
alexjp-blackbook_csv-1.0.5 lib/blackbook/exporter/base.rb
alexjp-blackbook_csv-3.0.1 lib/blackbook/exporter/base.rb
alexjp-blackbook_csv-3.0.2 lib/blackbook/exporter/base.rb
bcardarella-blackbook-1.0.10 lib/blackbook/exporter/base.rb
bcardarella-blackbook-1.0.11 lib/blackbook/exporter/base.rb
bcardarella-blackbook-1.0.7 lib/blackbook/exporter/base.rb
bcardarella-blackbook-1.0.8 lib/blackbook/exporter/base.rb
bcardarella-blackbook-1.0.9 lib/blackbook/exporter/base.rb
briancollins-blackbook-1.0.15 lib/blackbook/exporter/base.rb
rakutenusa-blackbook-1.0.12 lib/blackbook/exporter/base.rb
rakutenusa-blackbook-1.0.13 lib/blackbook/exporter/base.rb
rakutenusa-blackbook-1.0.14 lib/blackbook/exporter/base.rb
rakutenusa-blackbook-1.0.15 lib/blackbook/exporter/base.rb
rakutenusa-blackbook-1.0.16 lib/blackbook/exporter/base.rb
rakutenusa-blackbook-1.0.17 lib/blackbook/exporter/base.rb
rakutenusa-blackbook-1.0.18 lib/blackbook/exporter/base.rb
rakutenusa-blackbook-1.0.19 lib/blackbook/exporter/base.rb
blackbook-1.0.3 lib/blackbook/exporter/base.rb
blackbook-1.0.2 lib/blackbook/exporter/base.rb
blackbook-1.0.1 lib/blackbook/exporter/base.rb