class Mindee::Product::US::HealthcareCard::HealthcareCardV1Copay
Is a fixed amount for a covered service.
def initialize(prediction, page_id)
-
page_id
(Integer, nil
) -- -
prediction
(Hash
) --
def initialize(prediction, page_id) super @service_fees = prediction['service_fees'] @service_name = prediction['service_name'] @page_id = page_id end
def printable_values
-
(Hash)
-
def printable_values printable = {} printable[:service_fees] = @service_fees.nil? ? '' : Parsing::Standard::BaseField.float_to_string(@service_fees) printable[:service_name] = format_for_display(@service_name) printable end
def table_printable_values
-
(Hash)
-
def table_printable_values printable = {} printable[:service_fees] = @service_fees.nil? ? '' : Parsing::Standard::BaseField.float_to_string(@service_fees) printable[:service_name] = format_for_display(@service_name, 20) printable end
def to_s
-
(String)
-
def to_s printable = printable_values out_str = String.new out_str << "\n :Service Fees: #{printable[:service_fees]}" out_str << "\n :Service Name: #{printable[:service_name]}" out_str end
def to_table_line
-
(String)
-
def to_table_line printable = table_printable_values out_str = String.new out_str << format('| %- 13s', printable[:service_fees]) out_str << format('| %- 21s', printable[:service_name]) out_str << '|' end