Class: Seam::Clients::AcsSystems
- Inherits:
-
Object
- Object
- Seam::Clients::AcsSystems
- Defined in:
- lib/seam/routes/clients/acs_systems.rb
Instance Method Summary collapse
- #get(acs_system_id:) ⇒ Object
-
#initialize(client:, defaults:) ⇒ AcsSystems
constructor
A new instance of AcsSystems.
- #list(connected_account_id: nil, customer_key: nil, search: nil) ⇒ Object
- #list_compatible_credential_manager_acs_systems(acs_system_id:) ⇒ Object
- #report_devices(acs_system_id:, acs_encoders: nil, acs_entrances: nil) ⇒ Object
Constructor Details
#initialize(client:, defaults:) ⇒ AcsSystems
Returns a new instance of AcsSystems.
6 7 8 9 |
# File 'lib/seam/routes/clients/acs_systems.rb', line 6 def initialize(client:, defaults:) @client = client @defaults = defaults end |
Instance Method Details
#get(acs_system_id:) ⇒ Object
11 12 13 14 15 |
# File 'lib/seam/routes/clients/acs_systems.rb', line 11 def get(acs_system_id:) res = @client.post("/acs/systems/get", {acs_system_id: acs_system_id}.compact) Seam::Resources::AcsSystem.load_from_response(res.body["acs_system"]) end |
#list(connected_account_id: nil, customer_key: nil, search: nil) ⇒ Object
17 18 19 20 21 |
# File 'lib/seam/routes/clients/acs_systems.rb', line 17 def list(connected_account_id: nil, customer_key: nil, search: nil) res = @client.post("/acs/systems/list", {connected_account_id: connected_account_id, customer_key: customer_key, search: search}.compact) Seam::Resources::AcsSystem.load_from_response(res.body["acs_systems"]) end |
#list_compatible_credential_manager_acs_systems(acs_system_id:) ⇒ Object
23 24 25 26 27 |
# File 'lib/seam/routes/clients/acs_systems.rb', line 23 def list_compatible_credential_manager_acs_systems(acs_system_id:) res = @client.post("/acs/systems/list_compatible_credential_manager_acs_systems", {acs_system_id: acs_system_id}.compact) Seam::Resources::AcsSystem.load_from_response(res.body["acs_systems"]) end |
#report_devices(acs_system_id:, acs_encoders: nil, acs_entrances: nil) ⇒ Object
29 30 31 32 33 |
# File 'lib/seam/routes/clients/acs_systems.rb', line 29 def report_devices(acs_system_id:, acs_encoders: nil, acs_entrances: nil) @client.post("/acs/systems/report_devices", {acs_system_id: acs_system_id, acs_encoders: acs_encoders, acs_entrances: acs_entrances}.compact) nil end |