Class: ContextDev::Models::WebExtractStyleguideResponse::Styleguide::FontLink
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ContextDev::Models::WebExtractStyleguideResponse::Styleguide::FontLink
- Defined in:
- lib/context_dev/models/web_extract_styleguide_response.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#category ⇒ String?
Google Fonts category when type is google (e.g. sans-serif, serif, monospace, display, handwriting).
-
#display_name ⇒ String?
Present when type is custom: human-readable name derived from the fontLinks key (strip build/hash suffixes, split camelCase / PascalCase, normalize separators).
-
#files ⇒ Hash{Symbol=>String}
Upright font files keyed by weight string (e.g. “400” for regular, “500”, “700”).
- #type ⇒ Symbol, ContextDev::Models::WebExtractStyleguideResponse::Styleguide::FontLink::Type
Instance Method Summary collapse
-
#initialize(files:, type:, category: nil, display_name: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see FontLink for more details.
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(files:, type:, category: nil, display_name: nil) ⇒ Object
Some parameter documentations has been truncated, see ContextDev::Models::WebExtractStyleguideResponse::Styleguide::FontLink for more details.
|
|
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 739
|
Instance Attribute Details
#category ⇒ String?
Google Fonts category when type is google (e.g. sans-serif, serif, monospace, display, handwriting). Omitted for custom fonts when unknown.
729 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 729 optional :category, String |
#display_name ⇒ String?
Present when type is custom: human-readable name derived from the fontLinks key (strip build/hash suffixes, split camelCase / PascalCase, normalize separators). Google entries omit this.
737 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 737 optional :display_name, String, api_name: :displayName |
#files ⇒ Hash{Symbol=>String}
Upright font files keyed by weight string (e.g. “400” for regular, “500”, “700”). Values are absolute URLs.
717 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 717 required :files, ContextDev::Internal::Type::HashOf[String] |
#type ⇒ Symbol, ContextDev::Models::WebExtractStyleguideResponse::Styleguide::FontLink::Type
722 |
# File 'lib/context_dev/models/web_extract_styleguide_response.rb', line 722 required :type, enum: -> { ContextDev::Models::WebExtractStyleguideResponse::Styleguide::FontLink::Type } |