Class: Google::Apis::DfareportingV4::SortedDimension

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

Overview

Represents a sorted dimension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SortedDimension

Returns a new instance of SortedDimension.



11719
11720
11721
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11719

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

Instance Attribute Details

#kindString

The kind of resource this is, in this case dfareporting#sortedDimension. Corresponds to the JSON property kind

Returns:

  • (String)


11707
11708
11709
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11707

def kind
  @kind
end

#nameString

The name of the dimension. Corresponds to the JSON property name

Returns:

  • (String)


11712
11713
11714
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11712

def name
  @name
end

#sort_orderString

An optional sort order for the dimension column. Corresponds to the JSON property sortOrder

Returns:

  • (String)


11717
11718
11719
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11717

def sort_order
  @sort_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11724
11725
11726
11727
11728
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 11724

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @sort_order = args[:sort_order] if args.key?(:sort_order)
end