class Mindee::Product::Resume::ResumeV1Educations
The list of the candidate’s educational background.
def self.line_items_separator(char)
-
(String)
-
Parameters:
-
char
(String
) -- Character to use as a separator.
def self.line_items_separator(char) out_str = String.new out_str << "+#{char * 17}" out_str << "+#{char * 27}" out_str << "+#{char * 11}" out_str << "+#{char * 10}" out_str << "+#{char * 27}" out_str << "+#{char * 13}" out_str << "+#{char * 12}" out_str end
def initialize(prediction, page_id)
-
page_id
(Integer, nil
) -- -
prediction
(Array
) --
def initialize(prediction, page_id) entries = prediction.map do |entry| Resume::ResumeV1Education.new(entry, page_id) end super(entries) end
def to_s
-
(String)
-
def to_s return '' if empty? lines = map do |entry| "\n #{entry.to_table_line}\n#{self.class.line_items_separator('-')}" end.join out_str = String.new out_str << "\n#{self.class.line_items_separator('-')}\n " out_str << ' | Domain ' out_str << ' | Degree ' out_str << ' | End Month' out_str << ' | End Year' out_str << ' | School ' out_str << ' | Start Month' out_str << ' | Start Year' out_str << " |\n#{self.class.line_items_separator('=')}" out_str + lines end