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.
24 25 26 27 28 |
# File 'lib/openhab/rspec/mocks/persistence_service.rb', line 24 def initialize(, state, name) @timestamp = @state = state @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/openhab/rspec/mocks/persistence_service.rb', line 22 def name @name end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
22 23 24 |
# File 'lib/openhab/rspec/mocks/persistence_service.rb', line 22 def state @state end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
22 23 24 |
# File 'lib/openhab/rspec/mocks/persistence_service.rb', line 22 def @timestamp end |