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.



136
137
138
# File 'lib/jimson/client.rb', line 136

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



140
141
142
143
# File 'lib/jimson/client.rb', line 140

def method_missing(sym, *args, &block)
  request = Jimson::Request.new(sym.to_s, args)
  @helper.push_batch_request(request) 
end