Module: Mudfly

Extended by:
Configuration
Defined in:
lib/mudfly.rb,
lib/mudfly/client.rb,
lib/mudfly/request.rb,
lib/mudfly/version.rb,
lib/mudfly/configuration.rb,
lib/mudfly/error/forbidden.rb,
lib/mudfly/error/bad_request.rb,
lib/mudfly/response/http_exception.rb,
lib/mudfly/error/service_unavailable.rb,
lib/mudfly/error/internal_server_error.rb

Defined Under Namespace

Modules: Configuration, Error, Response Classes: Client, Request

Constant Summary collapse

VERSION =
"0.0.2"

Constants included from Configuration

Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_LOCALE, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_CONFIGURATION_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended

Class Method Details

.method_missing(symbol, *args) ⇒ Object

Delegate to Mudfly::Client



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/mudfly.rb', line 8

def self.method_missing(symbol, *args)

  if Client.respond_to?(symbol)

    return Client.send(symbol, *args)

  else

    return super

  end
  
end

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

Delegate to Mudfly::Client

Returns:

  • (Boolean)


24
25
26
27
28
# File 'lib/mudfly.rb', line 24

def self.respond_to?(symbol, include_all = false)

  return Client.respond_to?(symbol, include_all) || super(symbol, include_all)

end