Class: StatusPageRuby::Services::BuildLogTable

Inherits:
Object
  • Object
show all
Defined in:
lib/status_page_ruby/services/build_log_table.rb

Constant Summary collapse

HEADINGS =
%w[Service Status Time].freeze

Instance Method Summary collapse

Instance Method Details

#call(records) ⇒ Object



6
7
8
9
10
11
# File 'lib/status_page_ruby/services/build_log_table.rb', line 6

def call(records)
  Terminal::Table.new(
    headings: HEADINGS,
    rows: records.map(&:history_record)
  ).to_s
end