class EmuPower::Notifications::PriceCluster

Attributes

currency_code[RW]
duration[RW]
label[RW]
price[RW]
start_time[RW]
tier[RW]
trailing_digits[RW]

Public Instance Methods

build(hash) click to toggle source
# File lib/emu_power/notifications.rb, line 336
def build(hash)
        self.price = parse_hex('Price')
        self.currency_code = parse_hex('Currency')
        self.trailing_digits = parse_hex('TrailingDigits')
        self.tier = parse_hex('Tier')
        self.start_time = parse_timestamp('StartTime')
        self.duration = parse_hex('Duration')
        self.label = hash['RateLabel']
end