Class: NiceReplyClient

Inherits:
Object
  • Object
show all
Defined in:
lib/nice_reply_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(credentials = {}) ⇒ NiceReplyClient

Returns a new instance of NiceReplyClient.



5
6
7
# File 'lib/nice_reply_client.rb', line 5

def initialize(credentials={})
  @api_key = credentials[:api_key]
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object

Thanks to the Gibbon gem github.com/amro/gibbon for the idea to use method_missing and a call method



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

def method_missing(method, *args)
  call(method,args)
end