Class: Trycourier::Models::Brand
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/trycourier/models/brand.rb', line 46
|
Instance Attribute Details
#created ⇒ Integer
14
|
# File 'lib/trycourier/models/brand.rb', line 14
required :created, Integer
|
#id ⇒ String
9
|
# File 'lib/trycourier/models/brand.rb', line 9
required :id, String
|
#name ⇒ String
19
|
# File 'lib/trycourier/models/brand.rb', line 19
required :name, String
|
#published ⇒ Integer?
29
|
# File 'lib/trycourier/models/brand.rb', line 29
optional :published, Integer, nil?: true
|
34
|
# File 'lib/trycourier/models/brand.rb', line 34
optional :settings, -> { Trycourier::BrandSettings }, nil?: true
|
39
|
# File 'lib/trycourier/models/brand.rb', line 39
optional :snippets, -> { Trycourier::BrandSnippets }, nil?: true
|
#updated ⇒ Integer
24
|
# File 'lib/trycourier/models/brand.rb', line 24
required :updated, Integer
|
#version ⇒ String?
44
|
# File 'lib/trycourier/models/brand.rb', line 44
optional :version, String, nil?: true
|