Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYearMonth
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYearMonth
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb
Overview
Year month.
Instance Attribute Summary collapse
-
#month ⇒ String
The month of the year.
-
#year ⇒ Fixnum
The year (for example, 2020).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonYearMonth
constructor
A new instance of GoogleAdsSearchads360V23CommonYearMonth.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonYearMonth
Returns a new instance of GoogleAdsSearchads360V23CommonYearMonth.
13201 13202 13203 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13201 def initialize(**args) update!(**args) end |
Instance Attribute Details
#month ⇒ String
The month of the year. (for example, FEBRUARY).
Corresponds to the JSON property month
13194 13195 13196 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13194 def month @month end |
#year ⇒ Fixnum
The year (for example, 2020).
Corresponds to the JSON property year
13199 13200 13201 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13199 def year @year end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13206 13207 13208 13209 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13206 def update!(**args) @month = args[:month] if args.key?(:month) @year = args[:year] if args.key?(:year) end |