|
| 1 | +# frozen_string_literal: true |
| 2 | + |
| 3 | +module BrandDev |
| 4 | + module Models |
| 5 | + # @see BrandDev::Resources::Brand#fonts |
| 6 | + class BrandFontsResponse < BrandDev::Internal::Type::BaseModel |
| 7 | + # @!attribute code |
| 8 | + # HTTP status code, e.g., 200 |
| 9 | + # |
| 10 | + # @return [Integer] |
| 11 | + required :code, Integer |
| 12 | + |
| 13 | + # @!attribute domain |
| 14 | + # The normalized domain that was processed |
| 15 | + # |
| 16 | + # @return [String] |
| 17 | + required :domain, String |
| 18 | + |
| 19 | + # @!attribute fonts |
| 20 | + # Array of font usage information |
| 21 | + # |
| 22 | + # @return [Array<BrandDev::Models::BrandFontsResponse::Font>] |
| 23 | + required :fonts, -> { BrandDev::Internal::Type::ArrayOf[BrandDev::Models::BrandFontsResponse::Font] } |
| 24 | + |
| 25 | + # @!attribute status |
| 26 | + # Status of the response, e.g., 'ok' |
| 27 | + # |
| 28 | + # @return [String] |
| 29 | + required :status, String |
| 30 | + |
| 31 | + # @!method initialize(code:, domain:, fonts:, status:) |
| 32 | + # @param code [Integer] HTTP status code, e.g., 200 |
| 33 | + # |
| 34 | + # @param domain [String] The normalized domain that was processed |
| 35 | + # |
| 36 | + # @param fonts [Array<BrandDev::Models::BrandFontsResponse::Font>] Array of font usage information |
| 37 | + # |
| 38 | + # @param status [String] Status of the response, e.g., 'ok' |
| 39 | + |
| 40 | + class Font < BrandDev::Internal::Type::BaseModel |
| 41 | + # @!attribute fallbacks |
| 42 | + # Array of fallback font families |
| 43 | + # |
| 44 | + # @return [Array<String>] |
| 45 | + required :fallbacks, BrandDev::Internal::Type::ArrayOf[String] |
| 46 | + |
| 47 | + # @!attribute font |
| 48 | + # Font family name |
| 49 | + # |
| 50 | + # @return [String] |
| 51 | + required :font, String |
| 52 | + |
| 53 | + # @!attribute num_elements |
| 54 | + # Number of elements using this font |
| 55 | + # |
| 56 | + # @return [Float] |
| 57 | + required :num_elements, Float |
| 58 | + |
| 59 | + # @!attribute num_words |
| 60 | + # Number of words using this font |
| 61 | + # |
| 62 | + # @return [Float] |
| 63 | + required :num_words, Float |
| 64 | + |
| 65 | + # @!attribute percent_elements |
| 66 | + # Percentage of elements using this font |
| 67 | + # |
| 68 | + # @return [Float] |
| 69 | + required :percent_elements, Float |
| 70 | + |
| 71 | + # @!attribute percent_words |
| 72 | + # Percentage of words using this font |
| 73 | + # |
| 74 | + # @return [Float] |
| 75 | + required :percent_words, Float |
| 76 | + |
| 77 | + # @!attribute uses |
| 78 | + # Array of CSS selectors or element types where this font is used |
| 79 | + # |
| 80 | + # @return [Array<String>] |
| 81 | + required :uses, BrandDev::Internal::Type::ArrayOf[String] |
| 82 | + |
| 83 | + # @!method initialize(fallbacks:, font:, num_elements:, num_words:, percent_elements:, percent_words:, uses:) |
| 84 | + # @param fallbacks [Array<String>] Array of fallback font families |
| 85 | + # |
| 86 | + # @param font [String] Font family name |
| 87 | + # |
| 88 | + # @param num_elements [Float] Number of elements using this font |
| 89 | + # |
| 90 | + # @param num_words [Float] Number of words using this font |
| 91 | + # |
| 92 | + # @param percent_elements [Float] Percentage of elements using this font |
| 93 | + # |
| 94 | + # @param percent_words [Float] Percentage of words using this font |
| 95 | + # |
| 96 | + # @param uses [Array<String>] Array of CSS selectors or element types where this font is used |
| 97 | + end |
| 98 | + end |
| 99 | + end |
| 100 | +end |
0 commit comments