Class: Cockpit::Memory::Store

Inherits:
Hash
  • Object
show all
Defined in:
lib/cockpit/stores/memory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, context = "default") ⇒ Store

Returns a new instance of Store.



10
11
12
13
# File 'lib/cockpit/stores/memory.rb', line 10

def initialize(name, context = "default")
  @name = name
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



8
9
10
# File 'lib/cockpit/stores/memory.rb', line 8

def context
  @context
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/cockpit/stores/memory.rb', line 8

def name
  @name
end