Class: RdioApi::Client
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#consumer_key ⇒ Object
readonly
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
readonly
Returns the value of attribute consumer_secret.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
Initialize the client for API request.
Methods included from Api
Constructor Details
#initialize(options = {}) ⇒ Client
Initialize the client for API request. A consumer key and consumer secret are required. Requests on behalf of the user require access_token (oauth token)
13 14 15 16 17 |
# File 'lib/rdio_api/client.rb', line 13 def initialize(={}) @consumer_key = [:consumer_key] @consumer_secret = [:consumer_secret] @access_token = [:access_token] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RdioApi::Api
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
8 9 10 |
# File 'lib/rdio_api/client.rb', line 8 def access_token @access_token end |
#consumer_key ⇒ Object (readonly)
Returns the value of attribute consumer_key.
7 8 9 |
# File 'lib/rdio_api/client.rb', line 7 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object (readonly)
Returns the value of attribute consumer_secret.
7 8 9 |
# File 'lib/rdio_api/client.rb', line 7 def consumer_secret @consumer_secret end |