Class: Emb::BatchProxy
- Inherits:
-
Object
- Object
- Emb::BatchProxy
- Defined in:
- lib/emb/batch.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize(client) ⇒ BatchProxy
constructor
A new instance of BatchProxy.
- #inspect ⇒ Object
Constructor Details
#initialize(client) ⇒ BatchProxy
Returns a new instance of BatchProxy.
33 34 35 36 |
# File 'lib/emb/batch.rb', line 33 def initialize(client) @client = client @models = {} end |
Instance Method Details
#[](name) ⇒ Object
38 39 40 |
# File 'lib/emb/batch.rb', line 38 def [](name) @models[name.to_sym] ||= BatchModelProxy.new(@client, name.to_sym) end |
#inspect ⇒ Object
42 43 44 |
# File 'lib/emb/batch.rb', line 42 def inspect "#<Emb::BatchProxy client=#{@client.inspect}>" end |