Module: Pixmatch

Extended by:
Configuration
Defined in:
lib/pixmatch.rb,
lib/pixmatch/api.rb,
lib/pixmatch/error.rb,
lib/pixmatch/utils.rb,
lib/pixmatch/client.rb,
lib/pixmatch/request.rb,
lib/pixmatch/version.rb,
lib/pixmatch/client/add.rb,
lib/pixmatch/client/list.rb,
lib/pixmatch/client/ping.rb,
lib/pixmatch/client/count.rb,
lib/pixmatch/client/delete.rb,
lib/pixmatch/client/search.rb,
lib/pixmatch/configuration.rb

Overview

Adapted from the Ruby Twitter gem.

Defined Under Namespace

Modules: Configuration, Request, Utils Classes: API, Client, Error

Constant Summary collapse

VERSION =
'0.2.1'

Constants included from Configuration

Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_PASSWORD, Configuration::DEFAULT_USERNAME, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ pixmatch::Client

Alias for pixmatch::Client.new

Returns:

  • (pixmatch::Client)


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

def self.client(options = {})
  Pixmatch::Client.new(options)
end

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

Delegate to pixmatch::Client



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

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

.respond_to?(method) ⇒ Boolean

Delegate to pixmatch::Client

Returns:

  • (Boolean)


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

def self.respond_to?(method)
  return client.respond_to?(method) || super
end