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.



297
298
299
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 297

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

Instance Attribute Details

#endFloat

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

Returns:

  • (Float)


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

def end
  @end
end

#startFloat

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

Returns:

  • (Float)


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