Class: Google::Apis::QpxExpressV1::TimeOfDayRange
- Inherits:
-
Object
- Object
- Google::Apis::QpxExpressV1::TimeOfDayRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/qpx_express_v1/classes.rb,
generated/google/apis/qpx_express_v1/representations.rb,
generated/google/apis/qpx_express_v1/representations.rb
Overview
Two times in a single day defining a time range.
Instance Attribute Summary collapse
-
#earliest_time ⇒ String
The earliest time of day in HH:MM format.
-
#kind ⇒ String
Identifies this as a time of day range object, representing two times in a single day defining a time range.
-
#latest_time ⇒ String
The latest time of day in HH:MM format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeOfDayRange
constructor
A new instance of TimeOfDayRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TimeOfDayRange
Returns a new instance of TimeOfDayRange
1066 1067 1068 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1066 def initialize(**args) update!(**args) end |
Instance Attribute Details
#earliest_time ⇒ String
The earliest time of day in HH:MM format.
Corresponds to the JSON property earliestTime
1052 1053 1054 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1052 def earliest_time @earliest_time end |
#kind ⇒ String
Identifies this as a time of day range object, representing two times in a
single day defining a time range. Value: the fixed string qpxexpress#
timeOfDayRange.
Corresponds to the JSON property kind
1059 1060 1061 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1059 def kind @kind end |
#latest_time ⇒ String
The latest time of day in HH:MM format.
Corresponds to the JSON property latestTime
1064 1065 1066 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1064 def latest_time @latest_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1071 1072 1073 1074 1075 |
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1071 def update!(**args) @earliest_time = args[:earliest_time] if args.key?(:earliest_time) @kind = args[:kind] if args.key?(:kind) @latest_time = args[:latest_time] if args.key?(:latest_time) end |