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.



271
272
273
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 271

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)


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

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



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

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



276
277
278
279
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 276

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