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.
389 390 391 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 389 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
377 378 379 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 377 def currency_code @currency_code end |
#name ⇒ String
Required. Name of the header.
Corresponds to the JSON property name
382 383 384 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 382 def name @name end |
#type ⇒ String
Required. Type of the header.
Corresponds to the JSON property type
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 |