Class: Prospectus::State
- Inherits:
-
Object
- Object
- Prospectus::State
- Defined in:
- lib/prospectus/state.rb
Overview
Define a state object that supports modular checks
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize(params = {}) ⇒ State
Returns a new instance of State.
7 8 9 |
# File 'lib/prospectus/state.rb', line 7 def initialize(params = {}) @options = params end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
5 6 7 |
# File 'lib/prospectus/state.rb', line 5 def value @value end |