Sha256: b8f534b8c6c063820d657a0a87ec6d81ef85e5224dd5d6e9d0d2ad7259721db6

Contents?: true

Size: 886 Bytes

Versions: 1

Compression:

Stored size: 886 Bytes

Contents

require File.expand_path("../instagram/error", __FILE__)
require File.expand_path("../instagram/configuration", __FILE__)
require File.expand_path("../instagram/api", __FILE__)
require File.expand_path("../instagram/client", __FILE__)
require File.expand_path("../instagram/response", __FILE__)

require "hashie"
require "hashie/logger"
Hashie.logger = Logger.new(nil)

module Instagram
  extend Configuration

  # Alias for Instagram::Client.new
  #
  # @return [Instagram::Client]
  def self.client(options = {})
    Instagram::Client.new(options)
  end

  # Delegate to Instagram::Client
  def self.method_missing(method, *args, &block)
    return super unless client.respond_to?(method)
    client.send(method, *args, &block)
  end

  # Delegate to Instagram::Client
  def self.respond_to?(method, include_all = false)
    client.respond_to?(method, include_all) || super
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
instagram-continued-1.3.3 lib/instagram.rb