Class: ShopifyAPI::MobilePlatformApplication
- Inherits:
-
Rest::Base
- Object
- Rest::Base
- ShopifyAPI::MobilePlatformApplication
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2022_07/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2022_10/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2023_01/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2023_04/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2023_07/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2023_10/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2024_01/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2024_04/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2024_07/mobile_platform_application.rb,
lib/shopify_api/rest/resources/2024_10/mobile_platform_application.rb
Instance Attribute Summary collapse
-
#application_id ⇒ Object
readonly
Returns the value of attribute application_id.
-
#enabled_shared_webcredentials ⇒ Object
readonly
Returns the value of attribute enabled_shared_webcredentials.
-
#enabled_universal_or_app_links ⇒ Object
readonly
Returns the value of attribute enabled_universal_or_app_links.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#sha256_cert_fingerprints ⇒ Object
readonly
Returns the value of attribute sha256_cert_fingerprints.
Attributes inherited from Rest::Base
Class Method Summary collapse
- .all(session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
- .delete(id:, session: ShopifyAPI::Context.active_session) ⇒ Object
- .find(id:, session: ShopifyAPI::Context.active_session) ⇒ Object
Instance Method Summary collapse
-
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ MobilePlatformApplication
constructor
A new instance of MobilePlatformApplication.
Methods inherited from Rest::Base
api_call_limit, base_find, class_name, create_instance, create_instances_from_response, #delete, get_path, get_path_ids, has_many?, has_one?, inherited, json_body_name, json_response_body_names, #method_missing, next_page?, next_page_info, prev_page?, prev_page_info, primary_key, read_only_attributes, request, #respond_to_missing?, retry_request_after, #save, #save!, #to_hash
Constructor Details
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ MobilePlatformApplication
Returns a new instance of MobilePlatformApplication.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 19 def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) @application_id = T.let(nil, T.nilable(String)) @enabled_shared_webcredentials = T.let(nil, T.nilable(T::Boolean)) @enabled_universal_or_app_links = T.let(nil, T.nilable(T::Boolean)) @id = T.let(nil, T.nilable(Integer)) @platform = T.let(nil, T.nilable(String)) @sha256_cert_fingerprints = T.let(nil, T.nilable(T::Array[T.untyped])) super(session: session, from_hash: from_hash) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ShopifyAPI::Rest::Base
Instance Attribute Details
#application_id ⇒ Object (readonly)
Returns the value of attribute application_id.
42 43 44 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 42 def application_id @application_id end |
#enabled_shared_webcredentials ⇒ Object (readonly)
Returns the value of attribute enabled_shared_webcredentials.
44 45 46 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 44 def enabled_shared_webcredentials @enabled_shared_webcredentials end |
#enabled_universal_or_app_links ⇒ Object (readonly)
Returns the value of attribute enabled_universal_or_app_links.
46 47 48 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 46 def enabled_universal_or_app_links @enabled_universal_or_app_links end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
48 49 50 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 48 def id @id end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
50 51 52 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 50 def platform @platform end |
#sha256_cert_fingerprints ⇒ Object (readonly)
Returns the value of attribute sha256_cert_fingerprints.
52 53 54 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 52 def sha256_cert_fingerprints @sha256_cert_fingerprints end |
Class Method Details
.all(session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 98 def all( session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {}, params: {}.merge(kwargs).compact, ) T.cast(response, T::Array[MobilePlatformApplication]) end |
.delete(id:, session: ShopifyAPI::Context.active_session) ⇒ Object
79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 79 def delete( id:, session: ShopifyAPI::Context.active_session ) request( http_method: :delete, operation: :delete, session: session, ids: {id: id}, params: {}, ) end |
.find(id:, session: ShopifyAPI::Context.active_session) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 61 def find( id:, session: ShopifyAPI::Context.active_session ) result = base_find( session: session, ids: {id: id}, params: {}, ) T.cast(result[0], T.nilable(MobilePlatformApplication)) end |