Class: PostForMe::Models::PlatformPost::Metrics::TikTokBusinessMetricsDto::ImpressionSource

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/post_for_me/models/platform_post.rb,
sig/post_for_me/models/platform_post.rbs

Instance Attribute Summary collapse

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

#initializeObject



296
# File 'sig/post_for_me/models/platform_post.rbs', line 296

def initialize: (

Instance Attribute Details

#impression_sourceString

Name of the impression source

Parameters:

  • value (String)

Returns:

  • (String)


428
# File 'lib/post_for_me/models/platform_post.rb', line 428

required :impression_source, String

#percentageFloat

Percentage of impressions from this source

Parameters:

  • value (Float)

Returns:

  • (Float)


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 }

Returns:

  • ({ 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 }