Class: Google::Apis::AdsenseV2::Header
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::Header
- 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
-
#currency_code ⇒ String
The ISO-4217 currency code of this column.
-
#name ⇒ String
Required.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Header
constructor
A new instance of Header.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_code ⇒ String
The ISO-4217 currency code of this
column. Only present if the header type is METRIC_CURRENCY.
Corresponds to the JSON property currencyCode
450 451 452 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 450 def currency_code @currency_code end |
#name ⇒ String
Required. Name of the header.
Corresponds to the JSON property name
455 456 457 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 455 def name @name end |
#type ⇒ String
Required. Type of the header.
Corresponds to the JSON property type
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 |