Class: Google::Apis::TrafficdirectorV3::DoubleRange

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DoubleRange

Returns a new instance of DoubleRange.



289
290
291
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 289

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#endFloat

end of the range (exclusive) Corresponds to the JSON property end

Returns:

  • (Float)


282
283
284
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 282

def end
  @end
end

#startFloat

start of the range (inclusive) Corresponds to the JSON property start

Returns:

  • (Float)


287
288
289
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 287

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



294
295
296
297
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 294

def update!(**args)
  @end = args[:end] if args.key?(:end)
  @start = args[:start] if args.key?(:start)
end