Class: ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Typography::P
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::WebExtractStyleguideResponse::Styleguide::Typography::P
- Defined in:
- lib/context_dev/models/web_extract_styleguide_response.rb
Overview
Instance Attribute Summary collapse
-
#font_fallbacks ⇒ Array<String>
Full ordered font list from resolved computed font-family.
-
#font_family ⇒ String
Primary face (first family in the computed stack).
- #font_size ⇒ String
- #font_weight ⇒ Float
- #letter_spacing ⇒ String
- #line_height ⇒ String
Instance Method Summary collapse
- #initialize(font_fallbacks:, font_family:, font_size:, font_weight:, letter_spacing:, line_height:) ⇒ Object constructor
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(font_fallbacks:, font_family:, font_size:, font_weight:, letter_spacing:, line_height:) ⇒ Object
|
|
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 1098
|
Instance Attribute Details
#font_fallbacks ⇒ Array<String>
Full ordered font list from resolved computed font-family
1070 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 1070 required :font_fallbacks, ContextDev::Internal::Type::ArrayOf[String], api_name: :fontFallbacks |
#font_family ⇒ String
Primary face (first family in the computed stack)
1076 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 1076 required :font_family, String, api_name: :fontFamily |
#font_size ⇒ String
1081 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 1081 required :font_size, String, api_name: :fontSize |
#font_weight ⇒ Float
1086 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 1086 required :font_weight, Float, api_name: :fontWeight |
#letter_spacing ⇒ String
1091 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 1091 required :letter_spacing, String, api_name: :letterSpacing |
#line_height ⇒ String
1096 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 1096 required :line_height, String, api_name: :lineHeight |