Class: ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop

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

Defined Under Namespace

Classes: Color, Resolution

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_by_name_response.rb', line 278

Instance Attribute Details

#colorsArray<ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Color>?

Array of colors in the backdrop image



243
244
# File 'lib/context_dev/models/brand_retrieve_by_name_response.rb', line 243

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

#resolutionContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution?

Resolution of the backdrop image



250
# File 'lib/context_dev/models/brand_retrieve_by_name_response.rb', line 250

optional :resolution, -> { ContextDev::Models::BrandRetrieveByNameResponse::Brand::Backdrop::Resolution }

#urlString?

URL of the backdrop image

Returns:

  • (String, nil)


256
# File 'lib/context_dev/models/brand_retrieve_by_name_response.rb', line 256

optional :url, String