Class: PostForMe::Models::TiktokBusinessVideoMetricPercentage

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/post_for_me/models/tiktok_business_video_metric_percentage.rb,
sig/post_for_me/models/tiktok_business_video_metric_percentage.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

#initialize(percentage:, second:) ⇒ TiktokBusinessVideoMetricPercentage

Returns a new instance of TiktokBusinessVideoMetricPercentage.

Parameters:

  • percentage (Float)

    Percentage value for the metric

  • second (String)

    Time in seconds for the metric

  • percentage: (Float)
  • second: (String)


# File 'lib/post_for_me/models/tiktok_business_video_metric_percentage.rb', line 18

Instance Attribute Details

#percentageFloat

Percentage value for the metric

Parameters:

  • value (Float)

Returns:

  • (Float)


10
# File 'lib/post_for_me/models/tiktok_business_video_metric_percentage.rb', line 10

required :percentage, Float

#secondString

Time in seconds for the metric

Parameters:

  • value (String)

Returns:

  • (String)


16
# File 'lib/post_for_me/models/tiktok_business_video_metric_percentage.rb', line 16

required :second, String

Instance Method Details

#to_hash{ percentage: Float, second: String }

Returns:

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


13
# File 'sig/post_for_me/models/tiktok_business_video_metric_percentage.rbs', line 13

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