Sha256: f13453081e67b0e54bab0c6954c4637c1c45022b6bddbbd27f2e618d761a8e75

Contents?: true

Size: 722 Bytes

Versions: 15

Compression:

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

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

15 entries across 15 versions & 5 rubygems

Version Path
instagram_geo-0.8.8 lib/instagram_geo.rb
instagram-0.9.0 lib/instagram.rb
instagram_geo-0.8.7 lib/instagram_geo.rb
instagram-0.8.5 lib/instagram.rb
instagram-0.8.4 lib/instagram.rb
instagram-0.8.3 lib/instagram.rb
instagram-0.8.2 lib/instagram.rb
instagram-fixed-0.8 lib/instagram.rb
instagram-innonate-0.8 lib/instagram.rb
instagram-0.8 lib/instagram.rb
instagram-0.7 lib/instagram.rb
instagram-0.6.2 lib/instagram.rb
localist-instagvram-0.6.2 lib/instagram.rb
instagram-0.6.1 lib/instagram.rb
instagram-0.6 lib/instagram.rb