Method: Clientele::API#method_missing
- Defined in:
- lib/clientele/api.rb
#method_missing(method_name, *args, &block) ⇒ Object (private)
96 97 98 99 100 101 102 |
# File 'lib/clientele/api.rb', line 96 def method_missing(method_name, *args, &block) if resources.keys.include? method_name.to_s RequestBuilder.new(resources[method_name.to_s], client: self) elsif Request::VERBS.include? method_name.to_s RequestBuilder.new(Request.send(method_name.to_s, *args), client: self) else; super; end end |