Class: Emb::BatchProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/emb/batch.rb

Instance Method Summary collapse

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

#inspectObject



42
43
44
# File 'lib/emb/batch.rb', line 42

def inspect
  "#<Emb::BatchProxy client=#{@client.inspect}>"
end