Class: ShopifyAPI::ResourceFeedback
- Inherits:
-
ShopifyAPI::Rest::Base
- Object
- ShopifyAPI::Rest::Base
- ShopifyAPI::ResourceFeedback
- Extended by:
- T::Sig
- Defined in:
- lib/shopify_api/rest/resources/2022_04/resource_feedback.rb,
lib/shopify_api/rest/resources/2022_07/resource_feedback.rb,
lib/shopify_api/rest/resources/2022_10/resource_feedback.rb,
lib/shopify_api/rest/resources/2023_01/resource_feedback.rb,
lib/shopify_api/rest/resources/2023_04/resource_feedback.rb,
lib/shopify_api/rest/resources/2023_07/resource_feedback.rb,
lib/shopify_api/rest/resources/2023_10/resource_feedback.rb,
lib/shopify_api/rest/resources/2024_01/resource_feedback.rb,
lib/shopify_api/rest/resources/2024_04/resource_feedback.rb,
lib/shopify_api/rest/resources/2024_07/resource_feedback.rb,
lib/shopify_api/rest/resources/2024_10/resource_feedback.rb,
lib/shopify_api/rest/resources/2025_01/resource_feedback.rb,
lib/shopify_api/rest/resources/2025_04/resource_feedback.rb,
lib/shopify_api/rest/resources/2025_07/resource_feedback.rb,
lib/shopify_api/rest/resources/2025_10/resource_feedback.rb,
lib/shopify_api/rest/resources/2026_01/resource_feedback.rb,
lib/shopify_api/rest/resources/2026_04/resource_feedback.rb,
lib/shopify_api/rest/resources/2026_07/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.
-
#resource_id ⇒ Object
readonly
Returns the value of attribute resource_id.
-
#resource_type ⇒ Object
readonly
Returns the value of attribute resource_type.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ ResourceFeedback
constructor
A new instance of ResourceFeedback.
Constructor Details
#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ ResourceFeedback
Returns a new instance of ResourceFeedback.
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/shopify_api/rest/resources/2022_04/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])) @resource_id = T.let(nil, T.nilable(Integer)) @resource_type = 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 |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
40 41 42 |
# File 'lib/shopify_api/rest/resources/2022_04/resource_feedback.rb', line 40 def created_at @created_at end |
#feedback_generated_at ⇒ Object (readonly)
Returns the value of attribute feedback_generated_at.
42 43 44 |
# File 'lib/shopify_api/rest/resources/2022_04/resource_feedback.rb', line 42 def feedback_generated_at @feedback_generated_at end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
44 45 46 |
# File 'lib/shopify_api/rest/resources/2022_04/resource_feedback.rb', line 44 def @messages end |
#resource_id ⇒ Object (readonly)
Returns the value of attribute resource_id.
46 47 48 |
# File 'lib/shopify_api/rest/resources/2022_04/resource_feedback.rb', line 46 def resource_id @resource_id end |
#resource_type ⇒ Object (readonly)
Returns the value of attribute resource_type.
48 49 50 |
# File 'lib/shopify_api/rest/resources/2022_04/resource_feedback.rb', line 48 def resource_type @resource_type end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
50 51 52 |
# File 'lib/shopify_api/rest/resources/2022_04/resource_feedback.rb', line 50 def state @state end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
52 53 54 |
# File 'lib/shopify_api/rest/resources/2022_04/resource_feedback.rb', line 52 def updated_at @updated_at end |
Class Method Details
.all(session: ShopifyAPI::Context.active_session, **kwargs) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/shopify_api/rest/resources/2022_04/resource_feedback.rb', line 61 def all( session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {}, params: {}.merge(kwargs).compact, ) T.cast(response, T::Array[ResourceFeedback]) end |