Class: FastpixClient::Models::Operations::ListBreakdownValuesRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(metric_id:, timespan: nil, filterby: nil, group_by: nil, limit: 10, offset: 1, order_by: 'views', sort_order: Models::Operations::ListBreakdownValuesSortOrder::ASC, measurement: 'avg') ⇒ ListBreakdownValuesRequest

Returns a new instance of ListBreakdownValuesRequest.



55
56
57
58
59
60
61
62
63
64
65
# File 'lib/fastpix_client/models/operations/list_breakdown_values_request.rb', line 55

def initialize(metric_id:, timespan: nil, filterby: nil, group_by: nil, limit: 10, offset: 1, order_by: 'views', sort_order: Models::Operations::ListBreakdownValuesSortOrder::ASC, measurement: 'avg')
  @metric_id = metric_id
  @timespan = timespan
  @filterby = filterby
  @group_by = group_by
  @limit = limit
  @offset = offset
  @order_by = order_by
  @sort_order = sort_order
  @measurement = measurement
end

Instance Method Details

#==(other) ⇒ Object



68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/fastpix_client/models/operations/list_breakdown_values_request.rb', line 68

def ==(other)
  return false unless other.is_a? self.class
  return false unless @metric_id == other.metric_id
  return false unless @timespan == other.timespan
  return false unless @filterby == other.filterby
  return false unless @group_by == other.group_by
  return false unless @limit == other.limit
  return false unless @offset == other.offset
  return false unless @order_by == other.order_by
  return false unless @sort_order == other.sort_order
  return false unless @measurement == other.measurement
  true
end