Class: TumblrOAuth::Client

Inherits:
Object
  • Object
show all
Includes:
Authentication, Blog, User, Connection, Request
Defined in:
lib/tumblr-oauth/client.rb,
lib/tumblr-oauth/client/blog.rb,
lib/tumblr-oauth/client/user.rb

Defined Under Namespace

Modules: Blog, User

Instance Method Summary collapse

Methods included from User

#primary_blog, #user_info

Methods included from Blog

#blog_avatar, #blog_followers, #blog_info

Methods included from Request

#delete, #get, #post, #put

Constructor Details

#initialize(options = {}) ⇒ Client

Creates a new API



13
14
15
16
17
18
# File 'lib/tumblr-oauth/client.rb', line 13

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