Class: Google::Apis::AdmobV1::MediationReportSpecSortCondition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admob_v1/classes.rb,
lib/google/apis/admob_v1/representations.rb,
lib/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) ⇒ MediationReportSpecSortCondition

Returns a new instance of MediationReportSpecSortCondition.



650
651
652
# File 'lib/google/apis/admob_v1/classes.rb', line 650

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

Instance Attribute Details

#dimensionString

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

Returns:

  • (String)


638
639
640
# File 'lib/google/apis/admob_v1/classes.rb', line 638

def dimension
  @dimension
end

#metricString

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

Returns:

  • (String)


643
644
645
# File 'lib/google/apis/admob_v1/classes.rb', line 643

def metric
  @metric
end

#orderString

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

Returns:

  • (String)


648
649
650
# File 'lib/google/apis/admob_v1/classes.rb', line 648

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



655
656
657
658
659
# File 'lib/google/apis/admob_v1/classes.rb', line 655

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