Module: Tumblr

Defined in:
lib/tumblr.rb,
lib/tumblr/api.rb,
lib/tumblr/blog.rb,
lib/tumblr/query.rb,
lib/tumblr/quote.rb,
lib/tumblr/config.rb,
lib/tumblr/object.rb,
lib/tumblr/version.rb,
lib/tumblr/objects/chat.rb,
lib/tumblr/objects/link.rb,
lib/tumblr/objects/post.rb,
lib/tumblr/objects/text.rb,
lib/tumblr/objects/user.rb,
lib/tumblr/objects/audio.rb,
lib/tumblr/objects/photo.rb,
lib/tumblr/objects/video.rb,
lib/tumblr/objects/answer.rb,
lib/tumblr/middleware/params.rb,
lib/tumblr/middleware/parsing.rb

Defined Under Namespace

Classes: Answer, Api, Audio, Blog, Chat, Config, Link, Object, Params, Parsing, Photo, Post, Query, Quote, Text, User, Video

Constant Summary collapse

VERSION =

The version of the gem

'2.0.3'.freeze

Class Method Summary collapse

Class Method Details

.configObject



27
28
29
# File 'lib/tumblr.rb', line 27

def self.config
  @config
end

.configure(&block) ⇒ Object



22
23
24
25
# File 'lib/tumblr.rb', line 22

def self.configure(&block)
  @config = Config.new
  block.call(@config)
end

.load_config(path) ⇒ Object



31
32
33
# File 'lib/tumblr.rb', line 31

def self.load_config(path)
  @config.load(path)
end