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.
88 89 90 91 |
# File 'lib/state_store/binary_store.rb', line 88 def initialize(store,value) @value = value @store = store end |
Instance Attribute Details
#store ⇒ Object (readonly)
Returns the value of attribute store.
86 87 88 |
# File 'lib/state_store/binary_store.rb', line 86 def store @store end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
86 87 88 |
# File 'lib/state_store/binary_store.rb', line 86 def value @value end |
Instance Method Details
#has_status?(symbol) ⇒ Boolean
93 94 95 |
# File 'lib/state_store/binary_store.rb', line 93 def has_status?(symbol) self.store.has_status?(symbol,self.value) end |