class Saorin::Client::Base::Batch
Attributes
client[R]
Public Class Methods
new(client)
click to toggle source
Calls superclass method
# File lib/saorin/client/base.rb, line 44 def initialize(client) super() @client = client end
Public Instance Methods
apply()
click to toggle source
# File lib/saorin/client/base.rb, line 57 def apply return [] if empty? @client.apply(self) || [] end
call(method, *args)
click to toggle source
# File lib/saorin/client/base.rb, line 49 def call(method, *args) push Saorin::Request.new(method, args, :id => uuid) end
notify(method, *args)
click to toggle source
# File lib/saorin/client/base.rb, line 53 def notify(method, *args) push Saorin::Request.new(method, args) end