Class: RSpec::OpenHAB::Core::Mocks::PersistenceService::HistoricItem

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/openhab/core/mocks/persistence_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timestamp, state, name) ⇒ HistoricItem

Returns a new instance of HistoricItem.



16
17
18
19
20
# File 'lib/rspec/openhab/core/mocks/persistence_service.rb', line 16

def initialize(timestamp, state, name)
  @timestamp = timestamp
  @state = state
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/rspec/openhab/core/mocks/persistence_service.rb', line 14

def name
  @name
end

#stateObject (readonly)

Returns the value of attribute state.



14
15
16
# File 'lib/rspec/openhab/core/mocks/persistence_service.rb', line 14

def state
  @state
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



14
15
16
# File 'lib/rspec/openhab/core/mocks/persistence_service.rb', line 14

def timestamp
  @timestamp
end