Class: OpenHAB::RSpec::Mocks::PersistenceService::HistoricItem
- Inherits:
-
Object
- Object
- OpenHAB::RSpec::Mocks::PersistenceService::HistoricItem
- Defined in:
- lib/openhab/rspec/mocks/persistence_service.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(timestamp, state, name) ⇒ HistoricItem
constructor
A new instance of HistoricItem.
Constructor Details
#initialize(timestamp, state, name) ⇒ HistoricItem
Returns a new instance of HistoricItem.
15 16 17 18 19 |
# File 'lib/openhab/rspec/mocks/persistence_service.rb', line 15 def initialize(, state, name) @timestamp = @state = state @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/openhab/rspec/mocks/persistence_service.rb', line 13 def name @name end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
13 14 15 |
# File 'lib/openhab/rspec/mocks/persistence_service.rb', line 13 def state @state end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
13 14 15 |
# File 'lib/openhab/rspec/mocks/persistence_service.rb', line 13 def @timestamp end |