Class: PostForMe::Models::PlatformPost::Metrics::TikTokBusinessMetricsDto::ImpressionSource
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::PlatformPost::Metrics::TikTokBusinessMetricsDto::ImpressionSource
- Defined in:
- lib/post_for_me/models/platform_post.rb,
sig/post_for_me/models/platform_post.rbs
Instance Attribute Summary collapse
-
#impression_source ⇒ String
Name of the impression source.
-
#percentage ⇒ Float
Percentage of impressions from this source.
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
#initialize ⇒ Object
296 |
# File 'sig/post_for_me/models/platform_post.rbs', line 296
def initialize: (
|
Instance Attribute Details
#impression_source ⇒ String
Name of the impression source
428 |
# File 'lib/post_for_me/models/platform_post.rb', line 428 required :impression_source, String |
#percentage ⇒ Float
Percentage of impressions from this source
434 |
# File 'lib/post_for_me/models/platform_post.rb', line 434 required :percentage, Float |
Instance Method Details
#to_hash ⇒ { impression_source: String, percentage: Float }
301 |
# File 'sig/post_for_me/models/platform_post.rbs', line 301
def to_hash: -> { impression_source: String, percentage: Float }
|