Sha256: 403d2191fc4a6847d35e50466645bc3d0bc2a5ebf0311953a2e0a3b6ae635238

Contents?: true

Size: 692 Bytes

Versions: 5

Compression:

Stored size: 692 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

5 entries across 5 versions & 2 rubygems

Version Path
instagram-continued-continued-1.5.0 lib/instagram/api.rb
instagram-continued-1.4.0 lib/instagram/api.rb
instagram-continued-1.3.3 lib/instagram/api.rb
instagram-continued-1.3.2 lib/instagram/api.rb
instagram-continued-1.3.1 lib/instagram/api.rb