Module: Nuorder

Extended by:
Configurable
Defined in:
lib/nuorder.rb,
lib/nuorder/client.rb,
lib/nuorder/default.rb,
lib/nuorder/version.rb,
lib/nuorder/client/oauth.rb,
lib/nuorder/configurable.rb

Defined Under Namespace

Modules: Configurable, Default Classes: ApiError, Client

Constant Summary collapse

VERSION =
'1.3.1'

Class Method Summary collapse

Methods included from Configurable

configure, keys, options, reset!

Class Method Details

.clientObject



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

def client
  @client = Nuorder::Client.new(options) unless defined?(@client) && @client.same_options?(options)
  @client
end

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



24
25
26
# File 'lib/nuorder.rb', line 24

def method_missing(method_name, *args, &block)
  client.send(method_name, *args, &block)
end

.new(options = {}) ⇒ Object



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

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

.respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/nuorder.rb', line 20

def respond_to_missing?(method_name, include_private = false)
  client.respond_to?(method_name, include_private)
end