Class: StateStore::BinaryStore::BinaryValue
- Inherits:
-
Object
- Object
- StateStore::BinaryStore::BinaryValue
- Defined in:
- lib/state_store/binary_store.rb
Instance Attribute Summary collapse
-
#store ⇒ Object
readonly
Returns the value of attribute store.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #has_status?(symbol) ⇒ Boolean
-
#initialize(store, value) ⇒ BinaryValue
constructor
A new instance of BinaryValue.
Constructor Details
#initialize(store, value) ⇒ BinaryValue
Returns a new instance of BinaryValue.
98 99 100 101 |
# File 'lib/state_store/binary_store.rb', line 98 def initialize(store,value) @value = value @store = store end |
Instance Attribute Details
#store ⇒ Object (readonly)
Returns the value of attribute store.
96 97 98 |
# File 'lib/state_store/binary_store.rb', line 96 def store @store end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
96 97 98 |
# File 'lib/state_store/binary_store.rb', line 96 def value @value end |
Instance Method Details
#has_status?(symbol) ⇒ Boolean
103 104 105 |
# File 'lib/state_store/binary_store.rb', line 103 def has_status?(symbol) self.store.has_status?(symbol,self.value) end |