Class: Google::Apis::TrafficdirectorV3::DoubleRange
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::DoubleRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/trafficdirector_v3/classes.rb,
lib/google/apis/trafficdirector_v3/representations.rb,
lib/google/apis/trafficdirector_v3/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.
297 298 299 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 297 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Float
end of the range (exclusive)
Corresponds to the JSON property end
290 291 292 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 290 def end @end end |
#start ⇒ Float
start of the range (inclusive)
Corresponds to the JSON property start
295 296 297 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 295 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
302 303 304 305 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 302 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |