Sha256: 68cecaf940de5a6482e2260ce688a2f34b7ff6ef61bc5cb0ab21eb28232183aa

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

#require File.expand_path('../oauth', __FILE__)

module Genability
  # @private
  class API
    include Connection
    include Request
    #include OAuth

    # @private
    attr_accessor *Configuration::VALID_OPTIONS_KEYS

    # Creates a new API
    def initialize(options={})
      options = Genability.options.merge(options)
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
genability-0.3.0 lib/genability/api.rb