Class: ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Components::Button::Link

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::Button#link

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



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

def initialize: (

Instance Attribute Details

#background_colorString

Parameters:

  • value (String)

Returns:

  • (String)


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

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)


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

required :border_color, String, api_name: :borderColor

#border_radiusString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :border_radius, String, api_name: :borderRadius

#border_styleString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :border_style, String, api_name: :borderStyle

#border_widthString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :border_width, String, api_name: :borderWidth

#box_shadowString

Computed box-shadow (comma-separated layers when present)

Parameters:

  • value (String)

Returns:

  • (String)


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

required :box_shadow, String, api_name: :boxShadow

#colorString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :color, String

#cssString

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

Parameters:

  • value (String)

Returns:

  • (String)


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

required :css, String

#font_fallbacksArray<String>?

Full ordered font list from computed font-family

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


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

optional :font_fallbacks, ContextDev::Internal::Type::ArrayOf[String], api_name: :fontFallbacks

#font_familyString?

Primary button typeface (first in fontFallbacks)

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :font_family, String, api_name: :fontFamily

#font_sizeString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :font_size, String, api_name: :fontSize

#font_weightFloat

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :font_weight, Float, api_name: :fontWeight

#min_heightString

Sampled minimum height of the button box (typically px)

Parameters:

  • value (String)

Returns:

  • (String)


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

required :min_height, String, api_name: :minHeight

#min_widthString

Sampled minimum width of the button box (typically px)

Parameters:

  • value (String)

Returns:

  • (String)


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

required :min_width, String, api_name: :minWidth

#paddingString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :padding, String

#text_decorationString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :text_decoration, String, api_name: :textDecoration

#text_decoration_colorString?

Hex color of the underline when it differs from the text color

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :text_decoration_color, String, api_name: :textDecorationColor

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {