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) ⇒ Object
- #list_compatible_credential_manager_acs_systems(acs_system_id:) ⇒ 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) ⇒ Object
17 18 19 20 21 |
# File 'lib/seam/routes/clients/acs_systems.rb', line 17 def list(connected_account_id: nil) res = @client.post("/acs/systems/list", {connected_account_id: connected_account_id}.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 |