Class: Google::Apis::TrafficdirectorV2::DoubleRange

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

Instance Method Summary collapse

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

#endFloat

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

Returns:

  • (Float)


226
227
228
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 226

def end
  @end
end

#startFloat

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

Returns:

  • (Float)


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