Class: FastpixClient::Models::Components::MetricsBreakdownDetails
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::MetricsBreakdownDetails
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/metricsbreakdowndetails.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(views: nil, value: nil, total_watch_time: nil, total_playing_time: nil, field: nil) ⇒ MetricsBreakdownDetails
constructor
A new instance of MetricsBreakdownDetails.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(views: nil, value: nil, total_watch_time: nil, total_playing_time: nil, field: nil) ⇒ MetricsBreakdownDetails
Returns a new instance of MetricsBreakdownDetails.
27 28 29 30 31 32 33 |
# File 'lib/fastpix_client/models/components/metricsbreakdowndetails.rb', line 27 def initialize(views: nil, value: nil, total_watch_time: nil, total_playing_time: nil, field: nil) @views = views @value = value @total_watch_time = total_watch_time = @field = field end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/fastpix_client/models/components/metricsbreakdowndetails.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @views == other.views return false unless @value == other.value return false unless @total_watch_time == other.total_watch_time return false unless == other. return false unless @field == other.field true end |