Class: PostForMe::Models::PlatformPost::Metrics::TikTokBusinessMetricsDto::AudienceCountry

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

#initializeAudienceCountry

Returns a new instance of AudienceCountry.

Parameters:

  • country: (String)
  • percentage: (Float)


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

def initialize: (country: String, percentage: Float) -> void

Instance Attribute Details

#countryString

Country name

Parameters:

  • value (String)

Returns:

  • (String)


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

required :country, String

#percentageFloat

Percentage of audience from this country

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :percentage, Float

Instance Method Details

#to_hash{ country: String, percentage: Float }

Returns:

  • ({ country: String, percentage: Float })


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

def to_hash: -> { country: String, percentage: Float }