Class: ApiSpec::State
- Inherits:
-
Object
- Object
- ApiSpec::State
- Defined in:
- lib/api_spec/state.rb
Class Method Summary collapse
Class Method Details
.get(key) ⇒ Object
8 9 10 |
# File 'lib/api_spec/state.rb', line 8 def get(key) state[key.to_sym] end |
.reset ⇒ Object
12 13 14 |
# File 'lib/api_spec/state.rb', line 12 def reset @state = {} end |
.set(key, value) ⇒ Object
4 5 6 |
# File 'lib/api_spec/state.rb', line 4 def set(key, value) state[key.to_sym] = value end |