Module: Impermium

Extended by:
Configuration
Defined in:
lib/impermium.rb,
lib/impermium/user.rb,
lib/impermium/client.rb,
lib/impermium/errors.rb,
lib/impermium/content.rb,
lib/impermium/version.rb,
lib/impermium/user/account.rb,
lib/impermium/user/profile.rb,
lib/impermium/configuration.rb,
lib/impermium/content/comment.rb,
lib/impermium/content/listing.rb,
lib/impermium/content/bookmark.rb,
lib/impermium/content/blog_post.rb,
lib/impermium/content/connection.rb

Defined Under Namespace

Modules: Account, BlogPost, Bookmark, Comment, Configuration, Connection, Content, Listing, Profile, User Classes: BadRequest, BaseError, Client, ForbiddenRequest, NotFoundRequest, UnauthorizedReqeust

Constant Summary collapse

VERSION =
"1.1.0"

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_CLIENT_ID, Configuration::DEFAULT_CLIENT_NAME, Configuration::DEFAULT_ENDPOINT, Configuration::VALID_CONFIG_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

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



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

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

.new(options = {}) ⇒ Object



7
8
9
# File 'lib/impermium.rb', line 7

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

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

Returns:

  • (Boolean)


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

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