Class: Courier::Models::Brand

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/brand.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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:, name:, updated:, published: nil, settings: nil, snippets: nil, version: nil) ⇒ Object

Parameters:



# File 'lib/courier/models/brand.rb', line 47

Instance Attribute Details

#createdInteger

Returns:

  • (Integer)


15
# File 'lib/courier/models/brand.rb', line 15

required :created, Integer

#idString

Returns:

  • (String)


10
# File 'lib/courier/models/brand.rb', line 10

required :id, String

#nameString

Returns:

  • (String)


20
# File 'lib/courier/models/brand.rb', line 20

required :name, String

#publishedInteger?

Returns:

  • (Integer, nil)


30
# File 'lib/courier/models/brand.rb', line 30

optional :published, Integer, nil?: true

#settingsCourier::Models::BrandSettings?



35
# File 'lib/courier/models/brand.rb', line 35

optional :settings, -> { Courier::BrandSettings }, nil?: true

#snippetsCourier::Models::BrandSnippets?



40
# File 'lib/courier/models/brand.rb', line 40

optional :snippets, -> { Courier::BrandSnippets }, nil?: true

#updatedInteger

Returns:

  • (Integer)


25
# File 'lib/courier/models/brand.rb', line 25

required :updated, Integer

#versionString?

Returns:

  • (String, nil)


45
# File 'lib/courier/models/brand.rb', line 45

optional :version, String, nil?: true