Method: ShopifyAPI::CustomCollection#initialize

Defined in:
lib/shopify_api/rest/resources/2022_04/custom_collection.rb,
lib/shopify_api/rest/resources/2022_07/custom_collection.rb,
lib/shopify_api/rest/resources/2022_10/custom_collection.rb,
lib/shopify_api/rest/resources/2023_01/custom_collection.rb,
lib/shopify_api/rest/resources/2023_04/custom_collection.rb,
lib/shopify_api/rest/resources/2023_07/custom_collection.rb,
lib/shopify_api/rest/resources/2023_10/custom_collection.rb,
lib/shopify_api/rest/resources/2024_01/custom_collection.rb,
lib/shopify_api/rest/resources/2024_04/custom_collection.rb,
lib/shopify_api/rest/resources/2024_07/custom_collection.rb,
lib/shopify_api/rest/resources/2024_10/custom_collection.rb,
lib/shopify_api/rest/resources/2025_01/custom_collection.rb,
lib/shopify_api/rest/resources/2025_04/custom_collection.rb,
lib/shopify_api/rest/resources/2025_07/custom_collection.rb

#initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) ⇒ CustomCollection

Returns a new instance of CustomCollection.



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/shopify_api/rest/resources/2022_04/custom_collection.rb', line 19

def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil)

  @title = T.let(nil, T.nilable(String))
  @body_html = T.let(nil, T.nilable(String))
  @handle = T.let(nil, T.nilable(String))
  @id = T.let(nil, T.nilable(Integer))
  @image = T.let(nil, T.nilable(T.any(String, T::Hash[T.untyped, T.untyped])))
  @published = T.let(nil, T.nilable(T::Boolean))
  @published_at = T.let(nil, T.nilable(String))
  @published_scope = T.let(nil, T.nilable(String))
  @sort_order = T.let(nil, T.nilable(String))
  @template_suffix = T.let(nil, T.nilable(String))
  @updated_at = T.let(nil, T.nilable(String))

  super(session: session, from_hash: from_hash)
end