Class: ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components::Card

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/web_extract_styleguide_response.rb,
sig/context_dev/models/web_extract_styleguide_response.rbs

Overview

See Also:

  • ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components#card

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

#initializeObject



541
# File 'sig/context_dev/models/web_extract_styleguide_response.rbs', line 541

def initialize: (

Instance Attribute Details

#background_colorString

Parameters:

  • value (String)

Returns:

  • (String)


637
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 637

required :background_color, String, api_name: :backgroundColor

#border_colorString

Border color as CSS hex (#RRGGBB or #RRGGBBAA when computed border-color has alpha)

Parameters:

  • value (String)

Returns:

  • (String)


644
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 644

required :border_color, String, api_name: :borderColor

#border_radiusString

Parameters:

  • value (String)

Returns:

  • (String)


649
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 649

required :border_radius, String, api_name: :borderRadius

#border_styleString

Parameters:

  • value (String)

Returns:

  • (String)


654
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 654

required :border_style, String, api_name: :borderStyle

#border_widthString

Parameters:

  • value (String)

Returns:

  • (String)


659
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 659

required :border_width, String, api_name: :borderWidth

#box_shadowString

Parameters:

  • value (String)

Returns:

  • (String)


664
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 664

required :box_shadow, String, api_name: :boxShadow

#cssString

Ready-to-use CSS declaration block for this component style

Parameters:

  • value (String)

Returns:

  • (String)


670
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 670

required :css, String

#paddingString

Parameters:

  • value (String)

Returns:

  • (String)


675
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 675

required :padding, String

#text_colorString

Parameters:

  • value (String)

Returns:

  • (String)


680
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 680

required :text_color, String, api_name: :textColor

Instance Method Details

#to_hash{

Returns:

  • ({)


553
# File 'sig/context_dev/models/web_extract_styleguide_response.rbs', line 553

def to_hash: -> {