class XcMetricsAggregator::FilterCriteria
Attributes
device[RW]
percentile[RW]
Public Class Methods
new(json)
click to toggle source
# File lib/xc_metrics_aggregator/service/categories_service.rb, line 114 def initialize(json) @device = json["device"] @percentile = json["percentile"] end
new_from_prop(device, percentile)
click to toggle source
# File lib/xc_metrics_aggregator/service/categories_service.rb, line 119 def self.new_from_prop(device, percentile) self.new({"device": device.identifier, "percentile": percentile.identifier}) end
Public Instance Methods
==(other)
click to toggle source
# File lib/xc_metrics_aggregator/service/categories_service.rb, line 123 def ==(other) device == other.device && percentile == other.percentile end