Class: Saorin::Client::Base::Batch
- Inherits:
-
Array
- Object
- Array
- Saorin::Client::Base::Batch
- Includes:
- UUID
- Defined in:
- lib/saorin/client/base.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #apply ⇒ Object
- #call(method, *args) ⇒ Object
-
#initialize(client) ⇒ Batch
constructor
A new instance of Batch.
- #notify(method, *args) ⇒ Object
Methods included from UUID
Constructor Details
#initialize(client) ⇒ Batch
Returns a new instance of Batch.
44 45 46 47 |
# File 'lib/saorin/client/base.rb', line 44 def initialize(client) super() @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
42 43 44 |
# File 'lib/saorin/client/base.rb', line 42 def client @client end |
Instance Method Details
#apply ⇒ Object
57 58 59 60 |
# File 'lib/saorin/client/base.rb', line 57 def apply return [] if empty? @client.apply(self) || [] end |