Class: FastpixClient::Models::Components::MetricsOverallDataDetails
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::MetricsOverallDataDetails
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/metricsoveralldatadetails.rb
Overview
Retrieves overall values for a specified metric
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value: nil, total_watch_time: nil, unique_views: nil, total_views: nil, total_play_time: nil, global_value: nil) ⇒ MetricsOverallDataDetails
constructor
A new instance of MetricsOverallDataDetails.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(value: nil, total_watch_time: nil, unique_views: nil, total_views: nil, total_play_time: nil, global_value: nil) ⇒ MetricsOverallDataDetails
Returns a new instance of MetricsOverallDataDetails.
29 30 31 32 33 34 35 36 |
# File 'lib/fastpix_client/models/components/metricsoveralldatadetails.rb', line 29 def initialize(value: nil, total_watch_time: nil, unique_views: nil, total_views: nil, total_play_time: nil, global_value: nil) @value = value @total_watch_time = total_watch_time @unique_views = unique_views @total_views = total_views @total_play_time = total_play_time @global_value = global_value end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/fastpix_client/models/components/metricsoveralldatadetails.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @value == other.value return false unless @total_watch_time == other.total_watch_time return false unless @unique_views == other.unique_views return false unless @total_views == other.total_views return false unless @total_play_time == other.total_play_time return false unless @global_value == other.global_value true end |