Class: Google::Apis::TrafficdirectorV2::DoubleMatcher
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV2::DoubleMatcher
- 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
-
#exact ⇒ Float
If specified, the input double value must be equal to the value specified here.
-
#range ⇒ Google::Apis::TrafficdirectorV2::DoubleRange
Specifies the double start and end of the range using half-open interval semantics [start, end).
Instance Method Summary collapse
-
#initialize(**args) ⇒ DoubleMatcher
constructor
A new instance of DoubleMatcher.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#exact ⇒ Float
If specified, the input double value must be equal to the value specified here.
Corresponds to the JSON property exact
199 200 201 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 199 def exact @exact end |
#range ⇒ Google::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 |