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.
13261 13262 13263 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13261 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
13254 13255 13256 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13254 def month @month end |
#year ⇒ Fixnum
The year (for example, 2020).
Corresponds to the JSON property year
13259 13260 13261 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13259 def year @year end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13266 13267 13268 13269 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13266 def update!(**args) @month = args[:month] if args.key?(:month) @year = args[:year] if args.key?(:year) end |