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.



13135
13136
13137
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13135

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)


13128
13129
13130
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13128

def month
  @month
end

#yearFixnum

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

Returns:

  • (Fixnum)


13133
13134
13135
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13133

def year
  @year
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13140
13141
13142
13143
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13140

def update!(**args)
  @month = args[:month] if args.key?(:month)
  @year = args[:year] if args.key?(:year)
end