Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYearMonth

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#monthString

The month of the year. (for example, FEBRUARY). Corresponds to the JSON property month

Returns:

  • (String)


13254
13255
13256
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13254

def month
  @month
end

#yearFixnum

The year (for example, 2020). Corresponds to the JSON property year

Returns:

  • (Fixnum)


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