Class: Cockpit::Memory::Store
- Inherits:
-
Hash
- Object
- Hash
- Cockpit::Memory::Store
- Defined in:
- lib/cockpit/stores/memory.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, context = "default") ⇒ Store
constructor
A new instance of Store.
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
#context ⇒ Object (readonly)
Returns the value of attribute context.
8 9 10 |
# File 'lib/cockpit/stores/memory.rb', line 8 def context @context end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/cockpit/stores/memory.rb', line 8 def name @name end |