Class: Google::Apis::QpxExpressV1::TimeOfDayRange

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_timeString

The earliest time of day in HH:MM format. Corresponds to the JSON property earliestTime

Returns:

  • (String)


1052
1053
1054
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1052

def earliest_time
  @earliest_time
end

#kindString

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

Returns:

  • (String)


1059
1060
1061
# File 'generated/google/apis/qpx_express_v1/classes.rb', line 1059

def kind
  @kind
end

#latest_timeString

The latest time of day in HH:MM format. Corresponds to the JSON property latestTime

Returns:

  • (String)


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