Class: ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/brand_retrieve_simplified_response.rb

Overview

See Also:

Defined Under Namespace

Classes: Backdrop, Color, Logo

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(hex: nil, name: nil) ⇒ Object

Parameters:

  • hex (String) (defaults to: nil)

    Color in hexadecimal format

  • name (String) (defaults to: nil)

    Name of the color



# File 'lib/context_dev/models/brand_retrieve_simplified_response.rb', line 147

Instance Attribute Details

#backdropsArray<ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop>?

An array of backdrop images for the brand



38
39
# File 'lib/context_dev/models/brand_retrieve_simplified_response.rb', line 38

optional :backdrops,
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Backdrop] }

#colorsArray<ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color>?

An array of brand colors



45
46
# File 'lib/context_dev/models/brand_retrieve_simplified_response.rb', line 45

optional :colors,
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Color] }

#domainString?

The domain name of the brand

Returns:

  • (String, nil)


52
# File 'lib/context_dev/models/brand_retrieve_simplified_response.rb', line 52

optional :domain, String

#logosArray<ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo>?

An array of logos associated with the brand



58
59
# File 'lib/context_dev/models/brand_retrieve_simplified_response.rb', line 58

optional :logos,
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::BrandRetrieveSimplifiedResponse::Brand::Logo] }

#titleString?

The title or name of the brand

Returns:

  • (String, nil)


65
# File 'lib/context_dev/models/brand_retrieve_simplified_response.rb', line 65

optional :title, String