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
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) ⇒ MobilePlatformApplication
constructor
A new instance of MobilePlatformApplication.
Methods inherited from Rest::Base
base_find, class_name, create_instance, create_instances_from_response, #delete, get_path, has_many?, has_one?, 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?, #save, #save!, #to_hash
Constructor Details
#initialize(session: ShopifyAPI::Context.active_session) ⇒ MobilePlatformApplication
Returns a new instance of MobilePlatformApplication.
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 16 def initialize(session: ShopifyAPI::Context.active_session) super(session: session) @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])) 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.
38 39 40 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 38 def application_id @application_id end |
#enabled_shared_webcredentials ⇒ Object (readonly)
Returns the value of attribute enabled_shared_webcredentials.
40 41 42 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 40 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.
42 43 44 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 42 def enabled_universal_or_app_links @enabled_universal_or_app_links end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
44 45 46 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 44 def id @id end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
46 47 48 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 46 def platform @platform end |
#sha256_cert_fingerprints ⇒ Object (readonly)
Returns the value of attribute sha256_cert_fingerprints.
48 49 50 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 48 def sha256_cert_fingerprints @sha256_cert_fingerprints end |
Class Method Details
.all(session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 94 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
75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 75 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
57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/shopify_api/rest/resources/2022_04/mobile_platform_application.rb', line 57 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 |