Class: TumblrApiV2::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/tumblr-api-v2/client.rb

Constant Summary collapse

METHODS =
{
  apikey: [:info, :posts],
  none:   [:avatar]
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (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