Class: Seam::Clients::ConnectWebviews
- Inherits:
-
BaseClient
- Object
- BaseClient
- Seam::Clients::ConnectWebviews
- Defined in:
- lib/seam/clients/connect_webviews.rb
Instance Attribute Summary
Attributes inherited from BaseClient
Instance Method Summary collapse
- #create(accepted_providers: nil, automatically_manage_new_devices: nil, custom_metadata: nil, custom_redirect_failure_url: nil, custom_redirect_url: nil, device_selection_mode: nil, provider_category: nil, wait_for_device_creation: nil) ⇒ Object
- #delete(connect_webview_id:) ⇒ Object
- #get(connect_webview_id:) ⇒ Object
- #list(custom_metadata_has: nil, user_identifier_key: nil) ⇒ Object
Methods inherited from BaseClient
#initialize, #request_seam, #request_seam_object
Constructor Details
This class inherits a constructor from Seam::Clients::BaseClient
Instance Method Details
#create(accepted_providers: nil, automatically_manage_new_devices: nil, custom_metadata: nil, custom_redirect_failure_url: nil, custom_redirect_url: nil, device_selection_mode: nil, provider_category: nil, wait_for_device_creation: nil) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/seam/clients/connect_webviews.rb', line 6 def create(accepted_providers: nil, automatically_manage_new_devices: nil, custom_metadata: nil, custom_redirect_failure_url: nil, custom_redirect_url: nil, device_selection_mode: nil, provider_category: nil, wait_for_device_creation: nil) request_seam_object( :post, "/connect_webviews/create", Seam::ConnectWebview, "connect_webview", body: {accepted_providers: accepted_providers, automatically_manage_new_devices: automatically_manage_new_devices, custom_metadata: , custom_redirect_failure_url: custom_redirect_failure_url, custom_redirect_url: custom_redirect_url, device_selection_mode: device_selection_mode, provider_category: provider_category, wait_for_device_creation: wait_for_device_creation}.compact ) end |
#delete(connect_webview_id:) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/seam/clients/connect_webviews.rb', line 16 def delete(connect_webview_id:) request_seam( :post, "/connect_webviews/delete", body: {connect_webview_id: connect_webview_id}.compact ) nil end |
#get(connect_webview_id:) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/seam/clients/connect_webviews.rb', line 26 def get(connect_webview_id:) request_seam_object( :post, "/connect_webviews/get", Seam::ConnectWebview, "connect_webview", body: {connect_webview_id: connect_webview_id}.compact ) end |
#list(custom_metadata_has: nil, user_identifier_key: nil) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/seam/clients/connect_webviews.rb', line 36 def list(custom_metadata_has: nil, user_identifier_key: nil) request_seam_object( :post, "/connect_webviews/list", Seam::ConnectWebview, "connect_webviews", body: {custom_metadata_has: , user_identifier_key: user_identifier_key}.compact ) end |