class Mindee::Product::FR::EnergyBill::EnergyBillV1EnergyConsumer
The entity that consumes the energy.
def initialize(prediction, page_id)
-
page_id
(Integer, nil
) -- -
prediction
(Hash
) --
def initialize(prediction, page_id) super @address = prediction['address'] @name = prediction['name'] @page_id = page_id end
def printable_values
-
(Hash)
-
def printable_values printable = {} printable[:address] = format_for_display(@address) printable[:name] = format_for_display(@name) printable end
def to_s
-
(String)
-
def to_s printable = printable_values out_str = String.new out_str << "\n :Address: #{printable[:address]}" out_str << "\n :Name: #{printable[:name]}" out_str end