Class: Tumblr::Client
- Inherits:
-
Object
- Object
- Tumblr::Client
- 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
-
#initialize(attrs = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Connection
Methods included from Helper
Methods included from 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
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..merge(attrs) Config::VALID_OPTIONS_KEYS.each do |key| instance_variable_set("@#{key}".to_sym, attrs[key]) end end |