Class: FastpixClient::Models::Components::MetricsComparisonDetails
- Inherits:
-
Object
- Object
- FastpixClient::Models::Components::MetricsComparisonDetails
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_client/models/components/metricscomparisondetails.rb
Overview
Compare multiple metrics across specified dimensions.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value: nil, type: nil, name: nil, metric: nil, measurement: nil, items: nil) ⇒ MetricsComparisonDetails
constructor
A new instance of MetricsComparisonDetails.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(value: nil, type: nil, name: nil, metric: nil, measurement: nil, items: nil) ⇒ MetricsComparisonDetails
Returns a new instance of MetricsComparisonDetails.
30 31 32 33 34 35 36 37 |
# File 'lib/fastpix_client/models/components/metricscomparisondetails.rb', line 30 def initialize(value: nil, type: nil, name: nil, metric: nil, measurement: nil, items: nil) @value = value @type = type @name = name @metric = metric @measurement = measurement @items = items end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/fastpix_client/models/components/metricscomparisondetails.rb', line 40 def ==(other) return false unless other.is_a? self.class return false unless @value == other.value return false unless @type == other.type return false unless @name == other.name return false unless @metric == other.metric return false unless @measurement == other.measurement return false unless @items == other.items true end |