Class: PostForMe::Models::FacebookVideoRetentionGraph
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PostForMe::Models::FacebookVideoRetentionGraph
- 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
-
#rate ⇒ Float
Percentage of viewers at this time.
-
#time ⇒ Float
Time in seconds.
Instance Method Summary collapse
-
#initialize(rate:, time:) ⇒ FacebookVideoRetentionGraph
constructor
A new instance of FacebookVideoRetentionGraph.
- #to_hash ⇒ { rate: Float, time: 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(rate:, time:) ⇒ FacebookVideoRetentionGraph
Returns a new instance of FacebookVideoRetentionGraph.
|
|
# File 'lib/post_for_me/models/facebook_video_retention_graph.rb', line 18
|
Instance Attribute Details
#rate ⇒ Float
Percentage of viewers at this time
10 |
# File 'lib/post_for_me/models/facebook_video_retention_graph.rb', line 10 required :rate, Float |
#time ⇒ Float
Time in seconds
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 }
12 |
# File 'sig/post_for_me/models/facebook_video_retention_graph.rbs', line 12
def to_hash: -> { rate: Float, time: Float }
|