brand.dev 0.1.0.pre.alpha.13 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +49 -0
- data/README.md +1 -1
- data/lib/brand_dev/internal/transport/base_client.rb +10 -2
- data/lib/brand_dev/models/brand_ai_query_response.rb +9 -1
- data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +90 -43
- data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +89 -43
- data/lib/brand_dev/models/brand_retrieve_response.rb +89 -44
- data/lib/brand_dev/models/brand_retrieve_simplified_response.rb +46 -19
- data/lib/brand_dev/models.rb +0 -2
- data/lib/brand_dev/resources/brand.rb +0 -27
- data/lib/brand_dev/version.rb +1 -1
- data/lib/brand_dev.rb +0 -2
- data/rbi/brand_dev/models/brand_ai_query_response.rbi +11 -0
- data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +195 -90
- data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +195 -90
- data/rbi/brand_dev/models/brand_retrieve_response.rbi +195 -88
- data/rbi/brand_dev/models/brand_retrieve_simplified_response.rbi +121 -25
- data/rbi/brand_dev/models.rbi +0 -2
- data/rbi/brand_dev/resources/brand.rbi +0 -19
- data/sig/brand_dev/models/brand_ai_query_response.rbs +7 -0
- data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +91 -42
- data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +91 -42
- data/sig/brand_dev/models/brand_retrieve_response.rbs +91 -42
- data/sig/brand_dev/models/brand_retrieve_simplified_response.rbs +37 -17
- data/sig/brand_dev/models.rbs +0 -2
- data/sig/brand_dev/resources/brand.rbs +0 -6
- metadata +4 -10
- data/lib/brand_dev/models/brand_search_params.rb +0 -35
- data/lib/brand_dev/models/brand_search_response.rb +0 -35
- data/rbi/brand_dev/models/brand_search_params.rbi +0 -58
- data/rbi/brand_dev/models/brand_search_response.rbi +0 -63
- data/sig/brand_dev/models/brand_search_params.rbs +0 -30
- data/sig/brand_dev/models/brand_search_response.rbs +0 -29
@@ -4,6 +4,7 @@ module BrandDev
|
|
4
4
|
{
|
5
5
|
data_extracted: ::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted],
|
6
6
|
domain: String,
|
7
|
+
status: String,
|
7
8
|
urls_analyzed: ::Array[String]
|
8
9
|
}
|
9
10
|
|
@@ -18,6 +19,10 @@ module BrandDev
|
|
18
19
|
|
19
20
|
def domain=: (String) -> String
|
20
21
|
|
22
|
+
attr_reader status: String?
|
23
|
+
|
24
|
+
def status=: (String) -> String
|
25
|
+
|
21
26
|
attr_reader urls_analyzed: ::Array[String]?
|
22
27
|
|
23
28
|
def urls_analyzed=: (::Array[String]) -> ::Array[String]
|
@@ -25,12 +30,14 @@ module BrandDev
|
|
25
30
|
def initialize: (
|
26
31
|
?data_extracted: ::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted],
|
27
32
|
?domain: String,
|
33
|
+
?status: String,
|
28
34
|
?urls_analyzed: ::Array[String]
|
29
35
|
) -> void
|
30
36
|
|
31
37
|
def to_hash: -> {
|
32
38
|
data_extracted: ::Array[BrandDev::Models::BrandAIQueryResponse::DataExtracted],
|
33
39
|
domain: String,
|
40
|
+
status: String,
|
34
41
|
urls_analyzed: ::Array[String]
|
35
42
|
}
|
36
43
|
|
@@ -41,8 +41,10 @@ module BrandDev
|
|
41
41
|
colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color],
|
42
42
|
description: String,
|
43
43
|
domain: String,
|
44
|
-
|
44
|
+
email: String,
|
45
|
+
is_nsfw: bool,
|
45
46
|
logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo],
|
47
|
+
phone: String,
|
46
48
|
slogan: String,
|
47
49
|
socials: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social],
|
48
50
|
stock: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock,
|
@@ -76,11 +78,13 @@ module BrandDev
|
|
76
78
|
|
77
79
|
def domain=: (String) -> String
|
78
80
|
|
79
|
-
attr_reader
|
81
|
+
attr_reader email: String?
|
80
82
|
|
81
|
-
def
|
82
|
-
|
83
|
-
|
83
|
+
def email=: (String) -> String
|
84
|
+
|
85
|
+
attr_reader is_nsfw: bool?
|
86
|
+
|
87
|
+
def is_nsfw=: (bool) -> bool
|
84
88
|
|
85
89
|
attr_reader logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo]?
|
86
90
|
|
@@ -88,6 +92,10 @@ module BrandDev
|
|
88
92
|
::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo]
|
89
93
|
) -> ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo]
|
90
94
|
|
95
|
+
attr_reader phone: String?
|
96
|
+
|
97
|
+
def phone=: (String) -> String
|
98
|
+
|
91
99
|
attr_reader slogan: String?
|
92
100
|
|
93
101
|
def slogan=: (String) -> String
|
@@ -114,8 +122,10 @@ module BrandDev
|
|
114
122
|
?colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color],
|
115
123
|
?description: String,
|
116
124
|
?domain: String,
|
117
|
-
?
|
125
|
+
?email: String,
|
126
|
+
?is_nsfw: bool,
|
118
127
|
?logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo],
|
128
|
+
?phone: String,
|
119
129
|
?slogan: String,
|
120
130
|
?socials: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social],
|
121
131
|
?stock: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock,
|
@@ -128,8 +138,10 @@ module BrandDev
|
|
128
138
|
colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Color],
|
129
139
|
description: String,
|
130
140
|
domain: String,
|
131
|
-
|
141
|
+
email: String,
|
142
|
+
is_nsfw: bool,
|
132
143
|
logos: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo],
|
144
|
+
phone: String,
|
133
145
|
slogan: String,
|
134
146
|
socials: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Social],
|
135
147
|
stock: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Stock,
|
@@ -249,9 +261,14 @@ module BrandDev
|
|
249
261
|
def to_hash: -> { hex: String, name: String }
|
250
262
|
end
|
251
263
|
|
252
|
-
type resolution =
|
264
|
+
type resolution =
|
265
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
253
266
|
|
254
267
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
268
|
+
attr_reader aspect_ratio: Float?
|
269
|
+
|
270
|
+
def aspect_ratio=: (Float) -> Float
|
271
|
+
|
255
272
|
attr_reader height: Integer?
|
256
273
|
|
257
274
|
def height=: (Integer) -> Integer
|
@@ -260,9 +277,17 @@ module BrandDev
|
|
260
277
|
|
261
278
|
def width=: (Integer) -> Integer
|
262
279
|
|
263
|
-
def initialize: (
|
264
|
-
|
265
|
-
|
280
|
+
def initialize: (
|
281
|
+
?aspect_ratio: Float,
|
282
|
+
?height: Integer,
|
283
|
+
?width: Integer
|
284
|
+
) -> void
|
285
|
+
|
286
|
+
def to_hash: -> {
|
287
|
+
aspect_ratio: Float,
|
288
|
+
height: Integer,
|
289
|
+
width: Integer
|
290
|
+
}
|
266
291
|
end
|
267
292
|
end
|
268
293
|
|
@@ -282,28 +307,12 @@ module BrandDev
|
|
282
307
|
def to_hash: -> { hex: String, name: String }
|
283
308
|
end
|
284
309
|
|
285
|
-
type font = { name: String, usage: String }
|
286
|
-
|
287
|
-
class Font < BrandDev::Internal::Type::BaseModel
|
288
|
-
attr_reader name: String?
|
289
|
-
|
290
|
-
def name=: (String) -> String
|
291
|
-
|
292
|
-
attr_reader usage: String?
|
293
|
-
|
294
|
-
def usage=: (String) -> String
|
295
|
-
|
296
|
-
def initialize: (?name: String, ?usage: String) -> void
|
297
|
-
|
298
|
-
def to_hash: -> { name: String, usage: String }
|
299
|
-
end
|
300
|
-
|
301
310
|
type logo =
|
302
311
|
{
|
303
312
|
colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color],
|
304
|
-
|
305
|
-
mode: String,
|
313
|
+
mode: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode,
|
306
314
|
resolution: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution,
|
315
|
+
type: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_,
|
307
316
|
url: String
|
308
317
|
}
|
309
318
|
|
@@ -314,13 +323,11 @@ module BrandDev
|
|
314
323
|
::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color]
|
315
324
|
) -> ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color]
|
316
325
|
|
317
|
-
attr_reader
|
318
|
-
|
319
|
-
def group=: (Integer) -> Integer
|
326
|
+
attr_reader mode: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode?
|
320
327
|
|
321
|
-
|
322
|
-
|
323
|
-
|
328
|
+
def mode=: (
|
329
|
+
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode
|
330
|
+
) -> BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode
|
324
331
|
|
325
332
|
attr_reader resolution: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution?
|
326
333
|
|
@@ -328,23 +335,29 @@ module BrandDev
|
|
328
335
|
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution
|
329
336
|
) -> BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution
|
330
337
|
|
338
|
+
attr_reader type: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_?
|
339
|
+
|
340
|
+
def type=: (
|
341
|
+
BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_
|
342
|
+
) -> BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_
|
343
|
+
|
331
344
|
attr_reader url: String?
|
332
345
|
|
333
346
|
def url=: (String) -> String
|
334
347
|
|
335
348
|
def initialize: (
|
336
349
|
?colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color],
|
337
|
-
?
|
338
|
-
?mode: String,
|
350
|
+
?mode: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode,
|
339
351
|
?resolution: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution,
|
352
|
+
?type: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_,
|
340
353
|
?url: String
|
341
354
|
) -> void
|
342
355
|
|
343
356
|
def to_hash: -> {
|
344
357
|
colors: ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Color],
|
345
|
-
|
346
|
-
mode: String,
|
358
|
+
mode: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode,
|
347
359
|
resolution: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::Resolution,
|
360
|
+
type: BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_,
|
348
361
|
url: String
|
349
362
|
}
|
350
363
|
|
@@ -364,9 +377,26 @@ module BrandDev
|
|
364
377
|
def to_hash: -> { hex: String, name: String }
|
365
378
|
end
|
366
379
|
|
367
|
-
type
|
380
|
+
type mode = :light | :dark | :has_opaque_background
|
381
|
+
|
382
|
+
module Mode
|
383
|
+
extend BrandDev::Internal::Type::Enum
|
384
|
+
|
385
|
+
LIGHT: :light
|
386
|
+
DARK: :dark
|
387
|
+
HAS_OPAQUE_BACKGROUND: :has_opaque_background
|
388
|
+
|
389
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::mode]
|
390
|
+
end
|
391
|
+
|
392
|
+
type resolution =
|
393
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
368
394
|
|
369
395
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
396
|
+
attr_reader aspect_ratio: Float?
|
397
|
+
|
398
|
+
def aspect_ratio=: (Float) -> Float
|
399
|
+
|
370
400
|
attr_reader height: Integer?
|
371
401
|
|
372
402
|
def height=: (Integer) -> Integer
|
@@ -375,9 +405,28 @@ module BrandDev
|
|
375
405
|
|
376
406
|
def width=: (Integer) -> Integer
|
377
407
|
|
378
|
-
def initialize: (
|
408
|
+
def initialize: (
|
409
|
+
?aspect_ratio: Float,
|
410
|
+
?height: Integer,
|
411
|
+
?width: Integer
|
412
|
+
) -> void
|
413
|
+
|
414
|
+
def to_hash: -> {
|
415
|
+
aspect_ratio: Float,
|
416
|
+
height: Integer,
|
417
|
+
width: Integer
|
418
|
+
}
|
419
|
+
end
|
420
|
+
|
421
|
+
type type_ = :icon | :logo
|
422
|
+
|
423
|
+
module Type
|
424
|
+
extend BrandDev::Internal::Type::Enum
|
425
|
+
|
426
|
+
ICON: :icon
|
427
|
+
LOGO: :logo
|
379
428
|
|
380
|
-
def
|
429
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandIdentifyFromTransactionResponse::Brand::Logo::type_]
|
381
430
|
end
|
382
431
|
end
|
383
432
|
|
@@ -41,8 +41,10 @@ module BrandDev
|
|
41
41
|
colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
|
42
42
|
description: String,
|
43
43
|
domain: String,
|
44
|
-
|
44
|
+
email: String,
|
45
|
+
is_nsfw: bool,
|
45
46
|
logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
|
47
|
+
phone: String,
|
46
48
|
slogan: String,
|
47
49
|
socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
|
48
50
|
stock: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock,
|
@@ -76,11 +78,13 @@ module BrandDev
|
|
76
78
|
|
77
79
|
def domain=: (String) -> String
|
78
80
|
|
79
|
-
attr_reader
|
81
|
+
attr_reader email: String?
|
80
82
|
|
81
|
-
def
|
82
|
-
|
83
|
-
|
83
|
+
def email=: (String) -> String
|
84
|
+
|
85
|
+
attr_reader is_nsfw: bool?
|
86
|
+
|
87
|
+
def is_nsfw=: (bool) -> bool
|
84
88
|
|
85
89
|
attr_reader logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo]?
|
86
90
|
|
@@ -88,6 +92,10 @@ module BrandDev
|
|
88
92
|
::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo]
|
89
93
|
) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo]
|
90
94
|
|
95
|
+
attr_reader phone: String?
|
96
|
+
|
97
|
+
def phone=: (String) -> String
|
98
|
+
|
91
99
|
attr_reader slogan: String?
|
92
100
|
|
93
101
|
def slogan=: (String) -> String
|
@@ -114,8 +122,10 @@ module BrandDev
|
|
114
122
|
?colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
|
115
123
|
?description: String,
|
116
124
|
?domain: String,
|
117
|
-
?
|
125
|
+
?email: String,
|
126
|
+
?is_nsfw: bool,
|
118
127
|
?logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
|
128
|
+
?phone: String,
|
119
129
|
?slogan: String,
|
120
130
|
?socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
|
121
131
|
?stock: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock,
|
@@ -128,8 +138,10 @@ module BrandDev
|
|
128
138
|
colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Color],
|
129
139
|
description: String,
|
130
140
|
domain: String,
|
131
|
-
|
141
|
+
email: String,
|
142
|
+
is_nsfw: bool,
|
132
143
|
logos: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo],
|
144
|
+
phone: String,
|
133
145
|
slogan: String,
|
134
146
|
socials: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Social],
|
135
147
|
stock: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Stock,
|
@@ -249,9 +261,14 @@ module BrandDev
|
|
249
261
|
def to_hash: -> { hex: String, name: String }
|
250
262
|
end
|
251
263
|
|
252
|
-
type resolution =
|
264
|
+
type resolution =
|
265
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
253
266
|
|
254
267
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
268
|
+
attr_reader aspect_ratio: Float?
|
269
|
+
|
270
|
+
def aspect_ratio=: (Float) -> Float
|
271
|
+
|
255
272
|
attr_reader height: Integer?
|
256
273
|
|
257
274
|
def height=: (Integer) -> Integer
|
@@ -260,9 +277,17 @@ module BrandDev
|
|
260
277
|
|
261
278
|
def width=: (Integer) -> Integer
|
262
279
|
|
263
|
-
def initialize: (
|
264
|
-
|
265
|
-
|
280
|
+
def initialize: (
|
281
|
+
?aspect_ratio: Float,
|
282
|
+
?height: Integer,
|
283
|
+
?width: Integer
|
284
|
+
) -> void
|
285
|
+
|
286
|
+
def to_hash: -> {
|
287
|
+
aspect_ratio: Float,
|
288
|
+
height: Integer,
|
289
|
+
width: Integer
|
290
|
+
}
|
266
291
|
end
|
267
292
|
end
|
268
293
|
|
@@ -282,28 +307,12 @@ module BrandDev
|
|
282
307
|
def to_hash: -> { hex: String, name: String }
|
283
308
|
end
|
284
309
|
|
285
|
-
type font = { name: String, usage: String }
|
286
|
-
|
287
|
-
class Font < BrandDev::Internal::Type::BaseModel
|
288
|
-
attr_reader name: String?
|
289
|
-
|
290
|
-
def name=: (String) -> String
|
291
|
-
|
292
|
-
attr_reader usage: String?
|
293
|
-
|
294
|
-
def usage=: (String) -> String
|
295
|
-
|
296
|
-
def initialize: (?name: String, ?usage: String) -> void
|
297
|
-
|
298
|
-
def to_hash: -> { name: String, usage: String }
|
299
|
-
end
|
300
|
-
|
301
310
|
type logo =
|
302
311
|
{
|
303
312
|
colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color],
|
304
|
-
|
305
|
-
mode: String,
|
313
|
+
mode: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode,
|
306
314
|
resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution,
|
315
|
+
type: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_,
|
307
316
|
url: String
|
308
317
|
}
|
309
318
|
|
@@ -314,13 +323,11 @@ module BrandDev
|
|
314
323
|
::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color]
|
315
324
|
) -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color]
|
316
325
|
|
317
|
-
attr_reader
|
318
|
-
|
319
|
-
def group=: (Integer) -> Integer
|
326
|
+
attr_reader mode: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode?
|
320
327
|
|
321
|
-
|
322
|
-
|
323
|
-
|
328
|
+
def mode=: (
|
329
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode
|
330
|
+
) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode
|
324
331
|
|
325
332
|
attr_reader resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution?
|
326
333
|
|
@@ -328,23 +335,29 @@ module BrandDev
|
|
328
335
|
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution
|
329
336
|
) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution
|
330
337
|
|
338
|
+
attr_reader type: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_?
|
339
|
+
|
340
|
+
def type=: (
|
341
|
+
BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_
|
342
|
+
) -> BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_
|
343
|
+
|
331
344
|
attr_reader url: String?
|
332
345
|
|
333
346
|
def url=: (String) -> String
|
334
347
|
|
335
348
|
def initialize: (
|
336
349
|
?colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color],
|
337
|
-
?
|
338
|
-
?mode: String,
|
350
|
+
?mode: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode,
|
339
351
|
?resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution,
|
352
|
+
?type: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_,
|
340
353
|
?url: String
|
341
354
|
) -> void
|
342
355
|
|
343
356
|
def to_hash: -> {
|
344
357
|
colors: ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Color],
|
345
|
-
|
346
|
-
mode: String,
|
358
|
+
mode: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode,
|
347
359
|
resolution: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::Resolution,
|
360
|
+
type: BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_,
|
348
361
|
url: String
|
349
362
|
}
|
350
363
|
|
@@ -364,9 +377,26 @@ module BrandDev
|
|
364
377
|
def to_hash: -> { hex: String, name: String }
|
365
378
|
end
|
366
379
|
|
367
|
-
type
|
380
|
+
type mode = :light | :dark | :has_opaque_background
|
381
|
+
|
382
|
+
module Mode
|
383
|
+
extend BrandDev::Internal::Type::Enum
|
384
|
+
|
385
|
+
LIGHT: :light
|
386
|
+
DARK: :dark
|
387
|
+
HAS_OPAQUE_BACKGROUND: :has_opaque_background
|
388
|
+
|
389
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::mode]
|
390
|
+
end
|
391
|
+
|
392
|
+
type resolution =
|
393
|
+
{ aspect_ratio: Float, height: Integer, width: Integer }
|
368
394
|
|
369
395
|
class Resolution < BrandDev::Internal::Type::BaseModel
|
396
|
+
attr_reader aspect_ratio: Float?
|
397
|
+
|
398
|
+
def aspect_ratio=: (Float) -> Float
|
399
|
+
|
370
400
|
attr_reader height: Integer?
|
371
401
|
|
372
402
|
def height=: (Integer) -> Integer
|
@@ -375,9 +405,28 @@ module BrandDev
|
|
375
405
|
|
376
406
|
def width=: (Integer) -> Integer
|
377
407
|
|
378
|
-
def initialize: (
|
408
|
+
def initialize: (
|
409
|
+
?aspect_ratio: Float,
|
410
|
+
?height: Integer,
|
411
|
+
?width: Integer
|
412
|
+
) -> void
|
413
|
+
|
414
|
+
def to_hash: -> {
|
415
|
+
aspect_ratio: Float,
|
416
|
+
height: Integer,
|
417
|
+
width: Integer
|
418
|
+
}
|
419
|
+
end
|
420
|
+
|
421
|
+
type type_ = :icon | :logo
|
422
|
+
|
423
|
+
module Type
|
424
|
+
extend BrandDev::Internal::Type::Enum
|
425
|
+
|
426
|
+
ICON: :icon
|
427
|
+
LOGO: :logo
|
379
428
|
|
380
|
-
def
|
429
|
+
def self?.values: -> ::Array[BrandDev::Models::BrandRetrieveByTickerResponse::Brand::Logo::type_]
|
381
430
|
end
|
382
431
|
end
|
383
432
|
|