Class: RubyInstagram::API
- Inherits:
-
Object
- Object
- RubyInstagram::API
- Includes:
- Connection, OAuth, Request
- Defined in:
- lib/ruby_instagram/api.rb
Direct Known Subclasses
Constant Summary
Constants included from OAuth
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(options = {}) ⇒ API
constructor
Creates a new API.
Methods included from OAuth
#authorize_url, #get_access_token
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ API
Creates a new API
12 13 14 15 16 17 |
# File 'lib/ruby_instagram/api.rb', line 12 def initialize( = {}) = RubyInstagram..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Method Details
#config ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/ruby_instagram/api.rb', line 19 def config {}.tap do |conf| Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send(key) end end end |