Class: TumblrApiV2::Client
- Inherits:
-
Object
- Object
- TumblrApiV2::Client
- Includes:
- HTTParty
- Defined in:
- lib/tumblr-api-v2/client.rb
Constant Summary collapse
- METHODS =
{ apikey: [:info, :posts], none: [:avatar] }
Instance Attribute Summary collapse
-
#consumer_key ⇒ Object
readonly
Returns the value of attribute consumer_key.
Instance Method Summary collapse
-
#initialize(consumer_key = nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(consumer_key = nil) ⇒ Client
Returns a new instance of Client.
33 34 35 |
# File 'lib/tumblr-api-v2/client.rb', line 33 def initialize(consumer_key = nil) @consumer_key = consumer_key end |
Instance Attribute Details
#consumer_key ⇒ Object (readonly)
Returns the value of attribute consumer_key.
10 11 12 |
# File 'lib/tumblr-api-v2/client.rb', line 10 def consumer_key @consumer_key end |