Method: ShopifyAPI::Theme#initialize

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

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

Returns a new instance of Theme.



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

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

  @created_at = T.let(nil, T.nilable(String))
  @id = T.let(nil, T.nilable(Integer))
  @name = T.let(nil, T.nilable(String))
  @previewable = T.let(nil, T.nilable(T::Boolean))
  @processing = T.let(nil, T.nilable(T::Boolean))
  @role = T.let(nil, T.nilable(String))
  @src = T.let(nil, T.nilable(String))
  @theme_store_id = T.let(nil, T.nilable(Integer))
  @updated_at = T.let(nil, T.nilable(String))

  super(session: session, from_hash: from_hash)
end