Class: Bormashino::SessionStorage
- Inherits:
-
LocalStorage
- Object
- LocalStorage
- Bormashino::SessionStorage
- Defined in:
- lib/bormashino/local_storage.rb
Overview
wrapper of SessionStorage API see developer.mozilla.org/ja/docs/Web/API/Window/sessionStorage
Instance Attribute Summary
Attributes inherited from LocalStorage
Instance Method Summary collapse
-
#initialize ⇒ SessionStorage
constructor
A new instance of SessionStorage.
Methods inherited from LocalStorage
#clear, #get_item, #key, #length, #remove_item, #set_item
Constructor Details
#initialize ⇒ SessionStorage
Returns a new instance of SessionStorage.
43 44 45 46 |
# File 'lib/bormashino/local_storage.rb', line 43 def initialize super @storage = JS.global[:sessionStorage] end |