Class: Tumblr::Client

Inherits:
Object
  • Object
show all
Includes:
Blog, Helper, Post, Tagged, User, Connection, Request
Defined in:
lib/tumblr/blog.rb,
lib/tumblr/post.rb,
lib/tumblr/user.rb,
lib/tumblr/client.rb,
lib/tumblr/tagged.rb,
lib/tumblr/helpers.rb

Defined Under Namespace

Modules: Blog, Helper, Post, Tagged, User

Instance Method Summary collapse

Methods included from Connection

#connection

Methods included from Helper

#valid_options

Methods included from Tagged

#tagged

Methods included from Post

#audio, #chat, #delete, #edit, #link, #photo, #quote, #reblog, #text, #video

Methods included from User

#dashboard, #follow, #following, #info, #like, #likes, #unfollow, #unlike

Methods included from Blog

#avatar, #blog_info, #draft, #followers, #posts, #queue, #submissions

Methods included from Request

#get, #post, #respond

Constructor Details

#initialize(attrs = {}) ⇒ Client

Returns a new instance of Client.



19
20
21
22
23
24
# File 'lib/tumblr/client.rb', line 19

def initialize(attrs= {})
  attrs = Tumblr.options.merge(attrs)
  Config::VALID_OPTIONS_KEYS.each do |key|
    instance_variable_set("@#{key}".to_sym, attrs[key])
  end
end