Class: ShopifyAPI::ProductResourceFeedback
- Inherits:
-
Rest::Base
- Object
- Rest::Base
- ShopifyAPI::ProductResourceFeedback
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2022_07/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2022_10/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2023_01/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2023_04/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2023_07/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2023_10/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2024_01/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2024_04/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2024_07/product_resource_feedback.rb,
lib/shopify_api/rest/resources/2024_10/product_resource_feedback.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#feedback_generated_at ⇒ Object
readonly
Returns the value of attribute feedback_generated_at.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#product_id ⇒ Object
readonly
Returns the value of attribute product_id.
-
#resource_id ⇒ Object
readonly
Returns the value of attribute resource_id.
-
#resource_type ⇒ Object
readonly
Returns the value of attribute resource_type.
-
#resource_updated_at ⇒ Object
readonly
Returns the value of attribute resource_updated_at.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Attributes inherited from Rest::Base
Class Method Summary collapse
- .all(product_id: nil, session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
- .json_body_name ⇒ Object
Instance Method Summary collapse
-
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ ProductResourceFeedback
constructor
A new instance of ProductResourceFeedback.
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_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) ⇒ ProductResourceFeedback
Returns a new instance of ProductResourceFeedback.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 19 def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) @created_at = T.let(nil, T.nilable(String)) @feedback_generated_at = T.let(nil, T.nilable(String)) @messages = T.let(nil, T.nilable(T::Array[T.untyped])) @product_id = T.let(nil, T.nilable(Integer)) @resource_id = T.let(nil, T.nilable(Integer)) @resource_type = T.let(nil, T.nilable(String)) @resource_updated_at = T.let(nil, T.nilable(String)) @state = T.let(nil, T.nilable(String)) @updated_at = T.let(nil, T.nilable(String)) 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
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
42 43 44 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 42 def created_at @created_at end |
#feedback_generated_at ⇒ Object (readonly)
Returns the value of attribute feedback_generated_at.
44 45 46 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 44 def feedback_generated_at @feedback_generated_at end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
46 47 48 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 46 def @messages end |
#product_id ⇒ Object (readonly)
Returns the value of attribute product_id.
48 49 50 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 48 def product_id @product_id end |
#resource_id ⇒ Object (readonly)
Returns the value of attribute resource_id.
50 51 52 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 50 def resource_id @resource_id end |
#resource_type ⇒ Object (readonly)
Returns the value of attribute resource_type.
52 53 54 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 52 def resource_type @resource_type end |
#resource_updated_at ⇒ Object (readonly)
Returns the value of attribute resource_updated_at.
54 55 56 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 54 def resource_updated_at @resource_updated_at end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
56 57 58 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 56 def state @state end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
58 59 60 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 58 def updated_at @updated_at end |
Class Method Details
.all(product_id: nil, session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 75 def all( product_id: nil, session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {product_id: product_id}, params: {}.merge(kwargs).compact, ) T.cast(response, T::Array[ProductResourceFeedback]) end |
.json_body_name ⇒ Object
64 65 66 |
# File 'lib/shopify_api/rest/resources/2022_04/product_resource_feedback.rb', line 64 def json_body_name() "resource_feedback" end |