Class: Google::Apis::TrafficdirectorV3::DoubleMatcher
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::DoubleMatcher
- 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
-
#exact ⇒ Float
If specified, the input double value must be equal to the value specified here.
-
#range ⇒ Google::Apis::TrafficdirectorV3::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.
271 272 273 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 271 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
263 264 265 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 263 def exact @exact end |
#range ⇒ Google::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 |