Class: Jimson::BatchClient

Inherits:
BlankSlate
  • Object
show all
Defined in:
lib/jimson/client.rb

Instance Method Summary collapse

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