Module: Skittles

Extended by:
Configuration
Defined in:
lib/skittles.rb,
lib/skittles/api.rb,
lib/skittles/utils.rb,
lib/skittles/error.rb,
lib/skittles/client.rb,
lib/skittles/request.rb,
lib/skittles/version.rb,
lib/skittles/client/tip.rb,
lib/skittles/connection.rb,
lib/skittles/client/user.rb,
lib/skittles/client/venue.rb,
lib/skittles/client/photo.rb,
lib/skittles/configuration.rb,
lib/skittles/client/special.rb,
lib/skittles/client/setting.rb,
lib/skittles/client/checkin.rb

Overview

Adapted from the Ruby Twitter gem.

Defined Under Namespace

Modules: Configuration, Request Classes: BadGateway, BadRequest, Client, Error, GatewayTimeout, InternalServerError, MethodNotAllowed, NotFound, ServiceUnavailable, Unauthorized

Constant Summary

VERSION =
'0.5.0'

Constants included from Configuration

Configuration::DEFAULT_ACCESS_TOKEN, Configuration::DEFAULT_AUTHORIZATION_ENDPOINT, Configuration::DEFAULT_CLIENT_ID, Configuration::DEFAULT_CLIENT_SECRET, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

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

Alias for Skittles::Client.new

Returns:



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

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

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

Delegate to Skittles::Client



21
22
23
24
# File 'lib/skittles.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 Skittles::Client

Returns:

  • (Boolean)


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

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