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.



462
463
464
# File 'lib/google/apis/adsense_v2/classes.rb', line 462

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)


450
451
452
# File 'lib/google/apis/adsense_v2/classes.rb', line 450

def currency_code
  @currency_code
end

#nameString

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

Returns:

  • (String)


455
456
457
# File 'lib/google/apis/adsense_v2/classes.rb', line 455

def name
  @name
end

#typeString

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

Returns:

  • (String)


460
461
462
# File 'lib/google/apis/adsense_v2/classes.rb', line 460

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



467
468
469
470
471
# File 'lib/google/apis/adsense_v2/classes.rb', line 467

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