class EmuPower::Notifications::CurrentPeriodUsage
Attributes
digits_left[RW]
digits_right[RW]
start_date[RW]
suppress_leading_zeroes[RW]
usage[RW]
Public Instance Methods
build(hash)
click to toggle source
# File lib/emu_power/notifications.rb, line 261 def build(hash) self.usage = parse_amount('CurrentUsage') self.digits_right = parse_hex('DigitsRight') self.digits_left = parse_hex('DigitsLeft') self.suppress_leading_zeroes = parse_bool('SuppressLeadingZero') self.start_date = parse_timestamp('StartDate') end