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/response.rb,
lib/instagram/connection.rb,
lib/instagram/client/tags.rb,
lib/instagram/client/likes.rb,
lib/instagram/client/utils.rb,
lib/instagram/client/media.rb,
lib/instagram/client/users.rb,
lib/instagram/configuration.rb,
lib/instagram/client/comments.rb,
lib/instagram/client/embedding.rb,
lib/instagram/client/locations.rb,
lib/instagram/client/geographies.rb,
lib/instagram/client/subscriptions.rb

Defined Under Namespace

Modules: Configuration, OAuth, Request, Response Classes: BadGateway, BadRequest, Client, Error, GatewayTimeout, InternalServerError, InvalidSignature, NotFound, RateLimitExceeded, ServiceUnavailable, TooManyRequests

Constant Summary

VERSION =
'1.1.3'.freeze

Constants included from Configuration

Configuration::DEFAULT_ACCESS_TOKEN, Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_CLIENT_ID, Configuration::DEFAULT_CLIENT_IPS, Configuration::DEFAULT_CLIENT_SECRET, Configuration::DEFAULT_CONNECTION_OPTIONS, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_NO_RESPONSE_WRAPPER, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_REDIRECT_URI, Configuration::DEFAULT_SCOPE, 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



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

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

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

Delegate to Instagram::Client



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

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

.respond_to?(method, include_all = false) ⇒ Boolean

Delegate to Instagram::Client



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

def self.respond_to?(method, include_all=false)
  return client.respond_to?(method, include_all) || super
end