Class: PostForMe::Models::PlatformPost::Metrics::TikTokBusinessMetricsDto::AudienceCity
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::PlatformPost::Metrics::TikTokBusinessMetricsDto::AudienceCity
- Defined in:
- lib/post_for_me/models/platform_post.rb,
sig/post_for_me/models/platform_post.rbs
Instance Attribute Summary collapse
-
#city_name ⇒ String
City name.
-
#percentage ⇒ Float
Percentage of audience from this city.
Instance Method Summary collapse
-
#initialize(address_clicks:, app_download_clicks:, audience_cities:, audience_countries:, audience_genders:, audience_types:, average_time_watched:, comments:, email_clicks:, engagement_likes:, favorites:, full_video_watched_rate:, impression_sources:, lead_submissions:, likes:, new_followers:, phone_number_clicks:, profile_views:, reach:, shares:, total_time_watched:, video_view_retention:, video_views:, website_clicks:) ⇒ AudienceCity
constructor
A new instance of AudienceCity.
- #to_hash ⇒ { city_name: String, percentage: Float }
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(address_clicks:, app_download_clicks:, audience_cities:, audience_countries:, audience_genders:, audience_types:, average_time_watched:, comments:, email_clicks:, engagement_likes:, favorites:, full_video_watched_rate:, impression_sources:, lead_submissions:, likes:, new_followers:, phone_number_clicks:, profile_views:, reach:, shares:, total_time_watched:, video_view_retention:, video_views:, website_clicks:) ⇒ AudienceCity
Returns a new instance of AudienceCity.
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 |
# File 'lib/post_for_me/models/platform_post.rb', line 347 class AudienceCity < PostForMe::Internal::Type::BaseModel # @!attribute city_name # City name # # @return [String] required :city_name, String # @!attribute percentage # Percentage of audience from this city # # @return [Float] required :percentage, Float # @!method initialize(city_name:, percentage:) # @param city_name [String] City name # # @param percentage [Float] Percentage of audience from this city end |
Instance Attribute Details
#city_name ⇒ String
City name
352 |
# File 'lib/post_for_me/models/platform_post.rb', line 352 required :city_name, String |
#percentage ⇒ Float
Percentage of audience from this city
358 |
# File 'lib/post_for_me/models/platform_post.rb', line 358 required :percentage, Float |
Instance Method Details
#to_hash ⇒ { city_name: String, percentage: Float }
249 |
# File 'sig/post_for_me/models/platform_post.rbs', line 249
def to_hash: -> { city_name: String, percentage: Float }
|