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, custom_redirect_url: nil, custom_redirect_failure_url: nil, custom_metadata: nil, automatically_manage_new_devices: nil, device_selection_mode: nil, provider_category: nil, wait_for_device_creation: nil) ⇒ Object
- #get(connect_webview_id = nil) ⇒ Object
- #list ⇒ 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, custom_redirect_url: nil, custom_redirect_failure_url: nil, custom_metadata: nil, automatically_manage_new_devices: nil, device_selection_mode: nil, provider_category: nil, wait_for_device_creation: nil) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/seam/clients/connect_webviews.rb', line 26 def create( accepted_providers: nil, custom_redirect_url: nil, custom_redirect_failure_url: nil, custom_metadata: nil, automatically_manage_new_devices: 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, custom_redirect_url: custom_redirect_url, custom_redirect_failure_url: custom_redirect_failure_url, automatically_manage_new_devices: automatically_manage_new_devices, device_selection_mode: device_selection_mode, custom_metadata: , provider_category: provider_category, wait_for_device_creation: wait_for_device_creation }.compact ) end |
#get(connect_webview_id = nil) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/seam/clients/connect_webviews.rb', line 6 def get(connect_webview_id = nil) request_seam_object( :post, "/connect_webviews/get", Seam::ConnectWebview, "connect_webview", body: {connect_webview_id: connect_webview_id} ) end |
#list ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/seam/clients/connect_webviews.rb', line 16 def list request_seam_object( :post, "/connect_webviews/list", Seam::ConnectWebview, "connect_webviews", body: {} ) end |