Class: Google::Apis::TrafficdirectorV2::DoubleMatcher

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 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.



207
208
209
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 207

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)


199
200
201
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 199

def exact
  @exact
end

#rangeGoogle::Apis::TrafficdirectorV2::DoubleRange

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



205
206
207
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 205

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



212
213
214
215
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 212

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