Class: Google::Apis::AdsenseV2::Header

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

Overview

The header information of the columns requested in the report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Header

Returns a new instance of Header.



389
390
391
# File 'lib/google/apis/adsense_v2/classes.rb', line 389

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

Instance Attribute Details

#currency_codeString

The ISO-4217 currency code of this column. Only present if the header type is METRIC_CURRENCY. Corresponds to the JSON property currencyCode

Returns:

  • (String)


377
378
379
# File 'lib/google/apis/adsense_v2/classes.rb', line 377

def currency_code
  @currency_code
end

#nameString

Required. Name of the header. Corresponds to the JSON property name

Returns:

  • (String)


382
383
384
# File 'lib/google/apis/adsense_v2/classes.rb', line 382

def name
  @name
end

#typeString

Required. Type of the header. Corresponds to the JSON property type

Returns:

  • (String)


387
388
389
# File 'lib/google/apis/adsense_v2/classes.rb', line 387

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



394
395
396
397
398
# File 'lib/google/apis/adsense_v2/classes.rb', line 394

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