Module: Instagram

Extended by:
Configuration
Defined in:
lib/instagram.rb,
lib/instagram/api.rb,
lib/instagram/error.rb,
lib/instagram/oauth.rb,
lib/instagram/client.rb,
lib/instagram/request.rb,
lib/instagram/version.rb,
lib/instagram/connection.rb,
lib/instagram/client/tags.rb,
lib/instagram/client/likes.rb,
lib/instagram/client/media.rb,
lib/instagram/client/users.rb,
lib/instagram/client/utils.rb,
lib/instagram/configuration.rb,
lib/instagram/client/comments.rb,
lib/instagram/client/locations.rb,
lib/instagram/client/geographies.rb,
lib/instagram/client/subscriptions.rb

Defined Under Namespace

Modules: Configuration, OAuth, Request Classes: BadRequest, Client, Error, InternalServerError, InvalidSignature, NotFound, ServiceUnavailable

Constant Summary collapse

VERSION =
'0.8'.freeze

Constants included from Configuration

Configuration::DEFAULT_ACCESS_TOKEN, Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_CLIENT_ID, Configuration::DEFAULT_CLIENT_SECRET, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_REDIRECT_URI, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_FORMATS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Instagram::Client

Alias for Instagram::Client.new

Returns:



12
13
14
# File 'lib/instagram.rb', line 12

def self.client(options={})
  Instagram::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to Instagram::Client



17
18
19
20
# File 'lib/instagram.rb', line 17

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method) ⇒ Boolean

Delegate to Instagram::Client

Returns:

  • (Boolean)


23
24
25
# File 'lib/instagram.rb', line 23

def self.respond_to?(method)
  return client.respond_to?(method) || super
end