Class: ShopifyAPI::AndroidPayKey
- Inherits:
-
Rest::Base
- Object
- Rest::Base
- ShopifyAPI::AndroidPayKey
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/rest/resources/2022_04/android_pay_key.rb,
lib/shopify_api/rest/resources/2022_07/android_pay_key.rb,
lib/shopify_api/rest/resources/2022_10/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, 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) ⇒ AndroidPayKey
Returns a new instance of AndroidPayKey.
16 17 18 19 20 21 |
# File 'lib/shopify_api/rest/resources/2022_04/android_pay_key.rb', line 16 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.
32 33 34 |
# File 'lib/shopify_api/rest/resources/2022_04/android_pay_key.rb', line 32 def id @id end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
34 35 36 |
# File 'lib/shopify_api/rest/resources/2022_04/android_pay_key.rb', line 34 def public_key @public_key end |
Class Method Details
.delete(id:, session: ShopifyAPI::Context.active_session) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/shopify_api/rest/resources/2022_04/android_pay_key.rb', line 61 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
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/shopify_api/rest/resources/2022_04/android_pay_key.rb', line 43 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 |