Sha256: 0f00154676f48bd5c6c3f61257a88dde6cc818dcdac41c37973d65c01b8e4a8b

Contents?: true

Size: 690 Bytes

Versions: 19

Compression:

Stored size: 690 Bytes

Contents

require File.expand_path('../connection', __FILE__)
require File.expand_path('../request', __FILE__)
require File.expand_path('../oauth', __FILE__)

module Instagram
  # @private
  class API
    # @private
    attr_accessor *Configuration::VALID_OPTIONS_KEYS

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

    def config
      conf = {}
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        conf[key] = send key
      end
      conf
    end

    include Connection
    include Request
    include OAuth
  end
end

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
extendi-instagram-2.0.6 lib/instagram/api.rb
extendi-instagram-2.0.5 lib/instagram/api.rb
extendi-instagram-2.0.4 lib/instagram/api.rb
extendi-instagram-2.0.3 lib/instagram/api.rb
extendi-instagram-2.0.2 lib/instagram/api.rb
extendi-instagram-2.0.1 lib/instagram/api.rb
extendi-instagram-2.0.0 lib/instagram/api.rb
instagram-continued-1.3.0 lib/instagram/api.rb
instagram-community-maintained-1.1.6 lib/instagram/api.rb
instagram-continued-1.2.1 lib/instagram/api.rb
instagram-continued-1.2.0 lib/instagram/api.rb
instagram-1.1.6 lib/instagram/api.rb
instagram-1.1.5 lib/instagram/api.rb
instagram-1.1.4 lib/instagram/api.rb
instagram-1.1.3 lib/instagram/api.rb
instagram-1.1.2 lib/instagram/api.rb
instagram-1.1.1 lib/instagram/api.rb
instagram-1.1.0 lib/instagram/api.rb
instagram-1.0.0 lib/instagram/api.rb