Class: Dodopayments::Models::ProductCollectionListResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::ProductCollectionListResponse
- Defined in:
- lib/dodopayments/models/product_collection_list_response.rb
Overview
Instance Attribute Summary collapse
-
#created_at ⇒ Time
Timestamp when created.
-
#description ⇒ String?
Collection description.
-
#id ⇒ String
Collection ID.
-
#image ⇒ String?
Collection image URL.
-
#name ⇒ String
Collection name.
-
#products_count ⇒ Integer
Number of products in the collection.
-
#updated_at ⇒ Time
Timestamp when last updated.
Instance Method Summary collapse
- #initialize(id:, created_at:, name:, products_count:, updated_at:, description: nil, image: nil) ⇒ Object constructor
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, created_at:, name:, products_count:, updated_at:, description: nil, image: nil) ⇒ Object
|
|
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 49
|
Instance Attribute Details
#created_at ⇒ Time
Timestamp when created
17 |
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 17 required :created_at, Time |
#description ⇒ String?
Collection description
41 |
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 41 optional :description, String, nil?: true |
#id ⇒ String
Collection ID
11 |
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 11 required :id, String |
#image ⇒ String?
Collection image URL
47 |
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 47 optional :image, String, nil?: true |
#name ⇒ String
Collection name
23 |
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 23 required :name, String |
#products_count ⇒ Integer
Number of products in the collection
29 |
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 29 required :products_count, Integer |
#updated_at ⇒ Time
Timestamp when last updated
35 |
# File 'lib/dodopayments/models/product_collection_list_response.rb', line 35 required :updated_at, Time |