Class: Jimson::BatchClient
- Inherits:
-
Object
- Object
- Jimson::BatchClient
- Defined in:
- lib/jimson/client.rb
Instance Method Summary collapse
-
#initialize(helper) ⇒ BatchClient
constructor
A new instance of BatchClient.
- #method_missing(sym, *args, &block) ⇒ Object
Constructor Details
#initialize(helper) ⇒ BatchClient
Returns a new instance of BatchClient.
137 138 139 |
# File 'lib/jimson/client.rb', line 137 def initialize(helper) @helper = helper end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
141 142 143 144 |
# File 'lib/jimson/client.rb', line 141 def method_missing(sym, *args, &block) request = Jimson::Request.new(sym.to_s, args) @helper.push_batch_request(request) end |