Class: Google::Apis::TrafficdirectorV2::DoubleRange
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV2::DoubleRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/trafficdirector_v2/classes.rb,
generated/google/apis/trafficdirector_v2/representations.rb,
generated/google/apis/trafficdirector_v2/representations.rb
Overview
Specifies the double start and end of the range using half-open interval semantics [start, end).
Instance Attribute Summary collapse
-
#end ⇒ Float
end of the range (exclusive) Corresponds to the JSON property
end
. -
#start ⇒ Float
start of the range (inclusive) Corresponds to the JSON property
start
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DoubleRange
constructor
A new instance of DoubleRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DoubleRange
Returns a new instance of DoubleRange.
233 234 235 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 233 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Float
end of the range (exclusive)
Corresponds to the JSON property end
226 227 228 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 226 def end @end end |
#start ⇒ Float
start of the range (inclusive)
Corresponds to the JSON property start
231 232 233 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 231 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
238 239 240 241 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 238 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |