Class: EmuPower::Notifications::TimeCluster
- Inherits:
-
Notification
- Object
- Notification
- EmuPower::Notifications::TimeCluster
- Defined in:
- lib/emu_power/notifications.rb
Overview
Begin notification objects
Constant Summary
Constants inherited from Notification
Notification::UNIX_TIME_OFFSET
Instance Attribute Summary collapse
-
#local_time ⇒ Object
Returns the value of attribute local_time.
-
#utc_time ⇒ Object
Returns the value of attribute utc_time.
Attributes inherited from Notification
#device_mac, #meter_mac, #raw, #timestamp
Instance Method Summary collapse
Methods inherited from Notification
#initialize, #parse_amount, #parse_bool, #parse_hex, #parse_timestamp, root_name, subclasses, #to_s
Constructor Details
This class inherits a constructor from EmuPower::Notifications::Notification
Instance Attribute Details
#local_time ⇒ Object
Returns the value of attribute local_time.
118 119 120 |
# File 'lib/emu_power/notifications.rb', line 118 def local_time @local_time end |
#utc_time ⇒ Object
Returns the value of attribute utc_time.
117 118 119 |
# File 'lib/emu_power/notifications.rb', line 117 def utc_time @utc_time end |
Instance Method Details
#build(hash) ⇒ Object
120 121 122 123 |
# File 'lib/emu_power/notifications.rb', line 120 def build(hash) self.utc_time = ('UTCTime') self.local_time = ('LocalTime') end |