Sha256: 2b6f8619b0f12c0310fa750be6dcbf4c845d56b1fee401144e9ac42a6bd68449

Contents?: true

Size: 844 Bytes

Versions: 22

Compression:

Stored size: 844 Bytes

Contents

# The `Datapimp::Sync` module will delegate to the underlying service layer
# which we are pushing or pulling files and data from.  It will wrap the client
# implementation we are using.
module Datapimp
  module Sync
    def self.data_source_types
      %w(dropbox amazon github google json excel nokogiri)
    end

    def self.amazon(options={})
      require 'datapimp/clients/amazon'
      Datapimp::Clients::Amazon.client(options)
    end

    def self.dropbox(options={})
      require 'datapimp/clients/dropbox'
      Datapimp::Clients::Dropbox.client(options)
    end

    def self.github(options={})
      require 'datapimp/clients/github'
      Datapimp::Clients::Github.client(options)
    end

    def self.google(options={})
      require 'datapimp/clients/google'
      Datapimp::Clients::Google.client(options)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
datapimp-1.0.1 lib/datapimp/sync.rb
datapimp-1.0.0 lib/datapimp/sync.rb