Class: Ruboty::ToggleSwitch::Storage
- Inherits:
-
Object
- Object
- Ruboty::ToggleSwitch::Storage
- Defined in:
- lib/ruboty/toggle_switch/storage.rb
Defined Under Namespace
Classes: Record
Constant Summary collapse
- NAMESPACE =
'ruboty-toggle_switch-storage'
Instance Method Summary collapse
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize(brain) ⇒ Storage
constructor
A new instance of Storage.
Constructor Details
#initialize(brain) ⇒ Storage
Returns a new instance of Storage.
8 9 10 |
# File 'lib/ruboty/toggle_switch/storage.rb', line 8 def initialize(brain) @brain = brain end |
Instance Method Details
#[](key) ⇒ Object
12 13 14 |
# File 'lib/ruboty/toggle_switch/storage.rb', line 12 def [](key) records[key] end |