Class: Google::Apis::AdexchangesellerV2_0::Report::Header

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Header

Returns a new instance of Header.


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

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

Instance Attribute Details

#currencyString

The currency of this column. Only present if the header type is METRIC_CURRENCY. Corresponds to the JSON property currency

Returns:

  • (String)

559
560
561
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 559

def currency
  @currency
end

#nameString

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

Returns:

  • (String)

564
565
566
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 564

def name
  @name
end

#typeString

The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY. Corresponds to the JSON property type

Returns:

  • (String)

570
571
572
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 570

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


577
578
579
580
581
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 577

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