Module: Myxy

Extended by:
Config
Defined in:
lib/myxy.rb,
lib/myxy/log.rb,
lib/myxy/utils.rb,
lib/myxy/client.rb,
lib/myxy/config.rb,
lib/myxy/request.rb,
lib/myxy/version.rb,
lib/myxy/resource.rb,
lib/myxy/response.rb,
lib/myxy/classifier.rb,
lib/myxy/resources/event.rb,
lib/myxy/resources/calendar.rb

Defined Under Namespace

Modules: Config, Log, Request, Resource, Utils Classes: Calendar, Classifier, Client, Event, Response

Constant Summary collapse

MAJOR =
'0'
MINOR =
'0'
PATCH =
'1'
VERSION =
"#{MAJOR}.#{MINOR}.#{PATCH}"

Constants included from Config

Config::DEFAULT_ADAPTER, Config::DEFAULT_BASE_URL, Config::DEFAULT_FORMAT, Config::DEFAULT_VERSION, Config::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Config

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ Object

extend Log



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

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

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

Delegate method to client



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

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

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

Delegate method to client

Returns:

  • (Boolean)


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

def self.respond_to?(method, include_all = false)
  client.respond_to?(method, include_all) || super
end