Module: Reservix

Defined in:
lib/reservix.rb,
lib/reservix/client.rb,
lib/reservix/version.rb,
lib/reservix/response_error.rb,
lib/reservix/hash_response_wrapper.rb

Defined Under Namespace

Classes: Client, HashResponseWrapper, ResponseError

Constant Summary collapse

VERSION =
'0.0.3'

Class Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args, &block) ⇒ Object (private)



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

def method_missing(method_name, *args, &block)
  return super unless respond_to_missing?(method_name)
  Client.send(method_name, *args, &block)
end

Class Method Details

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



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

def method_missing(method_name, *args, &block)
  return super unless respond_to_missing?(method_name)
  Client.send(method_name, *args, &block)
end

.new(options = {}) ⇒ Object



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

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

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

Returns:

  • (Boolean)


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

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