Module: TumblRb

Extended by:
Configuration
Defined in:
lib/tumbl_rb.rb,
lib/tumbl_rb/blog.rb,
lib/tumbl_rb/error.rb,
lib/tumbl_rb/client.rb,
lib/tumbl_rb/request.rb,
lib/tumbl_rb/version.rb,
lib/tumbl_rb/connection.rb,
lib/tumbl_rb/client/blogs.rb,
lib/tumbl_rb/configuration.rb

Defined Under Namespace

Modules: Configuration, Connection, Request Classes: Blog, Client, Error, NotFound, Unauthorized

Constant Summary collapse

VERSION =
"0.1.1"

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_TIMEOUT, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to TumblRb::Client.new



16
17
18
19
# File 'lib/tumbl_rb.rb', line 16

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ TumblRb::Client

Alias for TumblRb::Client.new

Returns:



11
12
13
# File 'lib/tumbl_rb.rb', line 11

def new(options={})
  TumblRb::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/tumbl_rb.rb', line 21

def respond_to?(method, include_private=false)
  new.respond_to?(method, include_private) || super(method, include_private)
end