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.26 lib/datapimp/sync.rb
datapimp-1.0.25 lib/datapimp/sync.rb
datapimp-1.0.24 lib/datapimp/sync.rb
datapimp-1.0.23 lib/datapimp/sync.rb
datapimp-1.0.22 lib/datapimp/sync.rb
datapimp-1.0.21 lib/datapimp/sync.rb
datapimp-1.0.20 lib/datapimp/sync.rb
datapimp-1.0.15 lib/datapimp/sync.rb
datapimp-1.0.14 lib/datapimp/sync.rb
datapimp-1.0.13 lib/datapimp/sync.rb
datapimp-1.0.12 lib/datapimp/sync.rb
datapimp-1.0.11 lib/datapimp/sync.rb
datapimp-1.0.10 lib/datapimp/sync.rb
datapimp-1.0.9 lib/datapimp/sync.rb
datapimp-1.0.8 lib/datapimp/sync.rb
datapimp-1.0.6 lib/datapimp/sync.rb
datapimp-1.0.5 lib/datapimp/sync.rb
datapimp-1.0.4 lib/datapimp/sync.rb
datapimp-1.0.3 lib/datapimp/sync.rb
datapimp-1.0.2 lib/datapimp/sync.rb