class Guh::Vendor
This class wraps everything related to Vendors.
Public Class Methods
all()
click to toggle source
Retrieves a list of all supported vendors
Example:
Guh::Vendor.all
# File lib/guh/vendor.rb, line 26 def self.all response = get({ id: generate_request_id, method: "Devices.GetSupportedVendors" }) return response['vendors'] end
find(vendor_id)
click to toggle source
Retrieves a specific vendor
Example:
Guh::Vendor.find('{b241f7f5-8153-4a72-b260-f62beadc2d19}')
# File lib/guh/vendor.rb, line 14 def self.find(vendor_id) all.detect { |vendor| vendor['id'] == vendor_id } end