Class: Google::Apis::AdmobV1::NetworkReportSpecSortCondition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admob_v1/classes.rb,
generated/google/apis/admob_v1/representations.rb,
generated/google/apis/admob_v1/representations.rb

Overview

Sorting direction to be applied on a dimension or a metric.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkReportSpecSortCondition

Returns a new instance of NetworkReportSpecSortCondition.



574
575
576
# File 'generated/google/apis/admob_v1/classes.rb', line 574

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dimensionString

Sort by the specified dimension. Corresponds to the JSON property dimension

Returns:

  • (String)


562
563
564
# File 'generated/google/apis/admob_v1/classes.rb', line 562

def dimension
  @dimension
end

#metricString

Sort by the specified metric. Corresponds to the JSON property metric

Returns:

  • (String)


567
568
569
# File 'generated/google/apis/admob_v1/classes.rb', line 567

def metric
  @metric
end

#orderString

Sorting order of the dimension or metric. Corresponds to the JSON property order

Returns:

  • (String)


572
573
574
# File 'generated/google/apis/admob_v1/classes.rb', line 572

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



579
580
581
582
583
# File 'generated/google/apis/admob_v1/classes.rb', line 579

def update!(**args)
  @dimension = args[:dimension] if args.key?(:dimension)
  @metric = args[:metric] if args.key?(:metric)
  @order = args[:order] if args.key?(:order)
end