Sha256: 299b95ce63f3627c80ae2bcd4938f56000eca382904c2cc436b724cc8440581e

Contents?: true

Size: 345 Bytes

Versions: 6

Compression:

Stored size: 345 Bytes

Contents

##
# base class for exporters of contact information

module Graybook::Exporter

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
graybook-1.1.2 lib/graybook/exporter/base.rb
graybook-1.1.1 lib/graybook/exporter/base.rb
graybook-1.1.0 lib/graybook/exporter/base.rb
graybook-1.0.24 lib/graybook/exporter/base.rb
graybook-1.0.23 lib/graybook/exporter/base.rb
graybook-1.0.22 lib/graybook/exporter/base.rb