Class: Sr::Jimson::BatchClient

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

Instance Method Summary collapse

Methods inherited from BlankSlate

find_hidden_method, hide, reveal

Constructor Details

#initialize(helper) ⇒ BatchClient

Returns a new instance of BatchClient.



136
137
138
# File 'lib/sr/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/sr/jimson/client.rb', line 140

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