Class: Servactory::Context::Warehouse::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/servactory/context/warehouse/base.rb

Direct Known Subclasses

Inputs, Internals, Outputs

Instance Method Summary collapse

Constructor Details

#initialize(arguments = {}) ⇒ Base

Returns a new instance of Base.



7
8
9
# File 'lib/servactory/context/warehouse/base.rb', line 7

def initialize(arguments = {})
  @arguments = arguments
end

Instance Method Details

#assign(key, value) ⇒ Object



19
20
21
# File 'lib/servactory/context/warehouse/base.rb', line 19

def assign(key, value)
  @arguments[key] = value
end

#fetch(name, default_value) ⇒ Object

def fetch!(name)

@arguments.fetch(name)

end



15
16
17
# File 'lib/servactory/context/warehouse/base.rb', line 15

def fetch(name, default_value)
  @arguments.fetch(name, default_value)
end