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.



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

#storeObject (readonly)

Returns the value of attribute store.



86
87
88
# File 'lib/state_store/binary_store.rb', line 86

def store
  @store
end

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

Returns:

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