Class: Google::Apis::AuthorizedbuyersmarketplaceV1::DayPart
- Inherits:
-
Object
- Object
- Google::Apis::AuthorizedbuyersmarketplaceV1::DayPart
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb,
lib/google/apis/authorizedbuyersmarketplace_v1/representations.rb
Overview
Defines targeting for a period of time on a specific week day.
Instance Attribute Summary collapse
-
#day_of_week ⇒ String
Day of week for the period.
-
#end_time ⇒ Google::Apis::AuthorizedbuyersmarketplaceV1::TimeOfDay
Represents a time of day.
-
#start_time ⇒ Google::Apis::AuthorizedbuyersmarketplaceV1::TimeOfDay
Represents a time of day.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DayPart
constructor
A new instance of DayPart.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DayPart
Returns a new instance of DayPart.
461 462 463 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 461 def initialize(**args) update!(**args) end |
Instance Attribute Details
#day_of_week ⇒ String
Day of week for the period.
Corresponds to the JSON property dayOfWeek
445 446 447 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 445 def day_of_week @day_of_week end |
#end_time ⇒ Google::Apis::AuthorizedbuyersmarketplaceV1::TimeOfDay
Represents a time of day. The date and time zone are either not significant or
are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and google.protobuf.Timestamp.
Corresponds to the JSON property endTime
452 453 454 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 452 def end_time @end_time end |
#start_time ⇒ Google::Apis::AuthorizedbuyersmarketplaceV1::TimeOfDay
Represents a time of day. The date and time zone are either not significant or
are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and google.protobuf.Timestamp.
Corresponds to the JSON property startTime
459 460 461 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 459 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
466 467 468 469 470 |
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 466 def update!(**args) @day_of_week = args[:day_of_week] if args.key?(:day_of_week) @end_time = args[:end_time] if args.key?(:end_time) @start_time = args[:start_time] if args.key?(:start_time) end |