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

Inherits:
Object
  • Object
show all
Defined in:
lib/openhab/rspec/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.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#stateObject (readonly)

Returns the value of attribute state.



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

def state
  @state
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end