Class: Google::Apis::AdmobV1beta::NetworkReportSpecSortCondition

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



788
789
790
# File 'generated/google/apis/admob_v1beta/classes.rb', line 788

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

Instance Attribute Details

#dimensionString

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

Returns:

  • (String)


776
777
778
# File 'generated/google/apis/admob_v1beta/classes.rb', line 776

def dimension
  @dimension
end

#metricString

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

Returns:

  • (String)


781
782
783
# File 'generated/google/apis/admob_v1beta/classes.rb', line 781

def metric
  @metric
end

#orderString

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

Returns:

  • (String)


786
787
788
# File 'generated/google/apis/admob_v1beta/classes.rb', line 786

def order
  @order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



793
794
795
796
797
# File 'generated/google/apis/admob_v1beta/classes.rb', line 793

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