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.
39 40 41 42 |
# File 'lib/emb/batch.rb', line 39 def initialize(client) @client = client @models = {} end |
Instance Method Details
#[](name) ⇒ Object
44 45 46 |
# File 'lib/emb/batch.rb', line 44 def [](name) @models[name.to_sym] ||= BatchModelProxy.new(@client, name.to_sym) end |
#inspect ⇒ Object
48 49 50 |
# File 'lib/emb/batch.rb', line 48 def inspect "#<Emb::BatchProxy client=#{@client.inspect}>" end |