Class: Google::Apis::CoordinateV1::Schedule
- Inherits:
-
Object
- Object
- Google::Apis::CoordinateV1::Schedule
- Defined in:
- generated/google/apis/coordinate_v1/classes.rb,
generated/google/apis/coordinate_v1/representations.rb,
generated/google/apis/coordinate_v1/representations.rb
Overview
Job schedule.
Instance Attribute Summary collapse
-
#all_day ⇒ Boolean
(also: #all_day?)
Whether the job is scheduled for the whole day.
-
#duration ⇒ String
Job duration in milliseconds.
-
#end_time ⇒ String
Scheduled end time in milliseconds since epoch.
-
#kind ⇒ String
Identifies this object as a job schedule.
-
#start_time ⇒ String
Scheduled start time in milliseconds since epoch.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schedule
constructor
A new instance of Schedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Schedule
Returns a new instance of Schedule
515 516 517 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 515 def initialize(**args) update!(**args) end |
Instance Attribute Details
#all_day ⇒ Boolean Also known as: all_day?
Whether the job is scheduled for the whole day. Time of day in start/end times
is ignored if this is true.
Corresponds to the JSON property allDay
492 493 494 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 492 def all_day @all_day end |
#duration ⇒ String
Job duration in milliseconds.
Corresponds to the JSON property duration
498 499 500 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 498 def duration @duration end |
#end_time ⇒ String
Scheduled end time in milliseconds since epoch.
Corresponds to the JSON property endTime
503 504 505 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 503 def end_time @end_time end |
#kind ⇒ String
Identifies this object as a job schedule.
Corresponds to the JSON property kind
508 509 510 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 508 def kind @kind end |
#start_time ⇒ String
Scheduled start time in milliseconds since epoch.
Corresponds to the JSON property startTime
513 514 515 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 513 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
520 521 522 523 524 525 526 |
# File 'generated/google/apis/coordinate_v1/classes.rb', line 520 def update!(**args) @all_day = args[:all_day] if args.key?(:all_day) @duration = args[:duration] if args.key?(:duration) @end_time = args[:end_time] if args.key?(:end_time) @kind = args[:kind] if args.key?(:kind) @start_time = args[:start_time] if args.key?(:start_time) end |