Sha256: 4c987833a86d64df3e7b3b6b0f765bb80f904a9928aa29e47580866e07354e4e
Contents?: true
Size: 745 Bytes
Versions: 1
Compression:
Stored size: 745 Bytes
Contents
# Alertlogic Helper module AlertlogicHelper # Appliances Helper module Appliances def process_appliances(appliance_list, customer_id) data = [] reply = "/code Customer appliances for ID: #{customer_id} \n" headers = ['Appliance Type', 'UUID', 'Name', 'Status'] parse_json(appliance_list)['appliances'].each do |appliance| appliance.each do |type, details| data << [ type, details['id'], details['name'], details['status']['status'] ] end end count = parse_json(appliance_list)['total_count'] reply << build_table(data, headers) reply << "Total Appliances: #{count}\n" reply end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-alertlogic-0.0.1 | lib/alertlogic_helper/appliances.rb |