Class: Orkut::API

Inherits:
Object
  • Object
show all
Includes:
Authenticatable, Connection, Request
Defined in:
lib/orkut/api.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from Request

#delete_v1, #execute, #get_refresh_access_token, #get_v1, #head_v1, #post_v1, #put_v1, #verify_path

Methods included from Connection

#authorization_uri, #get_connection_hash

Methods included from Authenticatable

#authenticated?, #authenticated_v1?, #credentials, #credentials_v1

Constructor Details

#initialize(options = {}) ⇒ API

Creates a new API



15
16
17
18
19
20
# File 'lib/orkut/api.rb', line 15

def initialize(options={})
  options = Orkut.options.merge(options)
  Config::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end