Class: PostForMe::Models::PlatformPost::Metrics::TikTokPostMetricsDto

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



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

def initialize: (

Instance Attribute Details

#comment_countFloat

Number of comments on the video

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :comment_count, Float

#like_countFloat

Number of likes on the video

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :like_count, Float

#share_countFloat

Number of shares of the video

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :share_count, Float

#view_countFloat

Number of views on the video

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :view_count, Float

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {