Class: ShopifyAPI::AndroidPayKey
- Inherits:
-
Rest::Base
- Object
- Rest::Base
- ShopifyAPI::AndroidPayKey
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/rest/resources/2021_07/android_pay_key.rb,
lib/shopify_api/rest/resources/2021_10/android_pay_key.rb,
lib/shopify_api/rest/resources/2022_01/android_pay_key.rb,
lib/shopify_api/rest/resources/2022_04/android_pay_key.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#public_key ⇒ Object
readonly
Returns the value of attribute public_key.
Attributes inherited from Rest::Base
Class Method Summary collapse
- .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) ⇒ AndroidPayKey
constructor
A new instance of AndroidPayKey.
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, #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) ⇒ AndroidPayKey
Returns a new instance of AndroidPayKey.
12 13 14 15 16 17 |
# File 'lib/shopify_api/rest/resources/2021_07/android_pay_key.rb', line 12 def initialize(session: ShopifyAPI::Context.active_session) super(session: session) @id = T.let(nil, T.nilable(Integer)) @public_key = T.let(nil, T.nilable(String)) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ShopifyAPI::Rest::Base
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
28 29 30 |
# File 'lib/shopify_api/rest/resources/2021_07/android_pay_key.rb', line 28 def id @id end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
30 31 32 |
# File 'lib/shopify_api/rest/resources/2021_07/android_pay_key.rb', line 30 def public_key @public_key end |
Class Method Details
.delete(id:, session: ShopifyAPI::Context.active_session) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/shopify_api/rest/resources/2021_07/android_pay_key.rb', line 57 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
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/shopify_api/rest/resources/2021_07/android_pay_key.rb', line 39 def find( id:, session: ShopifyAPI::Context.active_session ) result = base_find( session: session, ids: {id: id}, params: {}, ) T.cast(result[0], T.nilable(AndroidPayKey)) end |