class Mindee::Parsing::Standard::CompanyRegistrationField
Company registration number or code, and its type.
def initialize(prediction, page_id, reconstructed: false)
-
reconstructed
(Boolean
) -- -
page_id
(Integer, nil
) -- -
prediction
(Hash
) --
def initialize(prediction, page_id, reconstructed: false) super @type = prediction['type'] end
def printable_values
def printable_values printable = {} printable['type'] = type printable['value'] = value printable end
def to_s
def to_s printable = printable_values format('Type: %<type>s, Value: %<value>s', type: printable['type'], value: printable['value']) end
def to_table_line
def to_table_line printable = printable_values format('| %<type>-15s | %<value>-20s ', type: printable['type'], value: printable['value']) end