Class: Google::Apis::TrafficdirectorV3::DoubleMatcher

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 way to match a double value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DoubleMatcher

Returns a new instance of DoubleMatcher.



263
264
265
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 263

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

Instance Attribute Details

#exactFloat

If specified, the input double value must be equal to the value specified here. Corresponds to the JSON property exact

Returns:

  • (Float)


255
256
257
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 255

def exact
  @exact
end

#rangeGoogle::Apis::TrafficdirectorV3::DoubleRange

Specifies the double start and end of the range using half-open interval semantics [start, end). Corresponds to the JSON property range



261
262
263
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 261

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



268
269
270
271
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 268

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