Class: ZweaBot::Models::Store

Inherits:
ApplicationRecord show all
Defined in:
lib/zwea_bot/models/store.rb

Instance Method Summary collapse

Instance Method Details

#report_linesObject



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/zwea_bot/models/store.rb', line 14

def report_lines
  lines = []
  lines << store_name
  lines << "APPLE ID: #{apple_id}"
  lines << ""
  lines << "Installed Displays:"
  installations.each do |installation|
    lines += installation.report_lines
  end
  lines << ""
  lines << "3D Elements:"
  line_items.each do |line_item|
    lines += line_item.report_lines
  end
  lines << '-'*88
end