Class: StateStore::BinaryStore::BinaryValue

Inherits:
Object
  • Object
show all
Defined in:
lib/state_store/binary_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#storeObject (readonly)

Returns the value of attribute store.



96
97
98
# File 'lib/state_store/binary_store.rb', line 96

def store
  @store
end

#valueObject (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

Returns:

  • (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