Sha256: 4d96452e139fac7948b4c23afd23e797989ea57dcdc6ed2df85fa44c76e695a1

Contents?: true

Size: 783 Bytes

Versions: 5

Compression:

Stored size: 783 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__)

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)
    return client.respond_to?(method) || super
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
instagram-1.1.0 lib/instagram.rb
instagram-1.0.0 lib/instagram.rb
instagram-0.11.0 lib/instagram.rb
instagram-0.10.0 lib/instagram.rb
instagram-0.9.1 lib/instagram.rb