Class: Courier::Models::Brand
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#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
|
# File 'lib/courier/models/brand.rb', line 47
|
Instance Attribute Details
#created ⇒ Integer
15
|
# File 'lib/courier/models/brand.rb', line 15
required :created, Integer
|
#id ⇒ String
10
|
# File 'lib/courier/models/brand.rb', line 10
required :id, String
|
#name ⇒ String
20
|
# File 'lib/courier/models/brand.rb', line 20
required :name, String
|
#published ⇒ Integer?
30
|
# File 'lib/courier/models/brand.rb', line 30
optional :published, Integer, nil?: true
|
35
|
# File 'lib/courier/models/brand.rb', line 35
optional :settings, -> { Courier::BrandSettings }, nil?: true
|
40
|
# File 'lib/courier/models/brand.rb', line 40
optional :snippets, -> { Courier::BrandSnippets }, nil?: true
|
#updated ⇒ Integer
25
|
# File 'lib/courier/models/brand.rb', line 25
required :updated, Integer
|
#version ⇒ String?
45
|
# File 'lib/courier/models/brand.rb', line 45
optional :version, String, nil?: true
|