Class: Google::Apis::OsconfigV1beta::WeekDayOfMonth
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::WeekDayOfMonth
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
Represents one week day in a month. An example is "the 4th Sunday".
Instance Attribute Summary collapse
-
#day_of_week ⇒ String
Required.
-
#week_ordinal ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WeekDayOfMonth
constructor
A new instance of WeekDayOfMonth.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WeekDayOfMonth
Returns a new instance of WeekDayOfMonth.
2525 2526 2527 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2525 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day_of_week ⇒ String
Required. A day of the week.
Corresponds to the JSON property dayOfWeek
2517 2518 2519 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2517 def day_of_week @day_of_week end |
#week_ordinal ⇒ Fixnum
Required. Week number in a month. 1-4 indicates the 1st to 4th week of the
month. -1 indicates the last week of the month.
Corresponds to the JSON property weekOrdinal
2523 2524 2525 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2523 def week_ordinal @week_ordinal end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2530 2531 2532 2533 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2530 def update!(**args) @day_of_week = args[:day_of_week] if args.key?(:day_of_week) @week_ordinal = args[:week_ordinal] if args.key?(:week_ordinal) end |