Class: FastpixClient::Models::Components::MetricsTimeseriesDataDetails

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/fastpix_client/models/components/metricstimeseriesdatadetails.rb

Overview

The metrics value at specific time intervals.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(interval_time: nil, metric_value: nil, number_of_views: nil) ⇒ MetricsTimeseriesDataDetails

Returns a new instance of MetricsTimeseriesDataDetails.



23
24
25
26
27
# File 'lib/fastpix_client/models/components/metricstimeseriesdatadetails.rb', line 23

def initialize(interval_time: nil, metric_value: nil, number_of_views: nil)
  @interval_time = interval_time
  @metric_value = metric_value
  @number_of_views = number_of_views
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/fastpix_client/models/components/metricstimeseriesdatadetails.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @interval_time == other.interval_time
  return false unless @metric_value == other.metric_value
  return false unless @number_of_views == other.number_of_views
  true
end