Class: Seam::Clients::AcsEntrances
Instance Attribute Summary
Attributes inherited from BaseClient
#client
Instance Method Summary
collapse
Methods inherited from BaseClient
#initialize, #request_seam, #request_seam_object
Instance Method Details
#get(acs_entrance_id:) ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/seam/clients/acs_entrances.rb', line 6
def get(acs_entrance_id:)
request_seam_object(
:post,
"/acs/entrances/get",
Seam::AcsEntrance,
"acs_entrance",
body: {acs_entrance_id: acs_entrance_id}.compact
)
end
|
#grant_access(acs_entrance_id:, acs_user_id:) ⇒ Object
16
17
18
19
20
21
22
23
24
|
# File 'lib/seam/clients/acs_entrances.rb', line 16
def grant_access(acs_entrance_id:, acs_user_id:)
request_seam(
:post,
"/acs/entrances/grant_access",
body: {acs_entrance_id: acs_entrance_id, acs_user_id: acs_user_id}.compact
)
nil
end
|
#list(acs_credential_id: nil, acs_system_id: nil) ⇒ Object
26
27
28
29
30
31
32
33
34
|
# File 'lib/seam/clients/acs_entrances.rb', line 26
def list(acs_credential_id: nil, acs_system_id: nil)
request_seam_object(
:post,
"/acs/entrances/list",
Seam::AcsEntrance,
"acs_entrances",
body: {acs_credential_id: acs_credential_id, acs_system_id: acs_system_id}.compact
)
end
|
#list_credentials_with_access(acs_entrance_id:, include_if: nil) ⇒ Object
36
37
38
39
40
41
42
43
44
|
# File 'lib/seam/clients/acs_entrances.rb', line 36
def list_credentials_with_access(acs_entrance_id:, include_if: nil)
request_seam_object(
:post,
"/acs/entrances/list_credentials_with_access",
Seam::AcsCredential,
"acs_credentials",
body: {acs_entrance_id: acs_entrance_id, include_if: include_if}.compact
)
end
|