Class: PostForMe::Models::FacebookVideoRetentionGraph

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/post_for_me/models/facebook_video_retention_graph.rb,
sig/post_for_me/models/facebook_video_retention_graph.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(rate:, time:) ⇒ FacebookVideoRetentionGraph

Returns a new instance of FacebookVideoRetentionGraph.

Parameters:

  • rate (Float)

    Percentage of viewers at this time

  • time (Float)

    Time in seconds

  • rate: (Float)
  • time: (Float)


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

Instance Attribute Details

#rateFloat

Percentage of viewers at this time

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :rate, Float

#timeFloat

Time in seconds

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :time, Float

Instance Method Details

#to_hash{ rate: Float, time: Float }

Returns:

  • ({ rate: Float, time: Float })


12
# File 'sig/post_for_me/models/facebook_video_retention_graph.rbs', line 12

def to_hash: -> { rate: Float, time: Float }