Class: Google::Apis::RetailV2::GoogleCloudRetailV2Interval
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2Interval
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
A floating point interval.
Instance Attribute Summary collapse
-
#exclusive_maximum ⇒ Float
Exclusive upper bound.
-
#exclusive_minimum ⇒ Float
Exclusive lower bound.
-
#maximum ⇒ Float
Inclusive upper bound.
-
#minimum ⇒ Float
Inclusive lower bound.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2Interval
constructor
A new instance of GoogleCloudRetailV2Interval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2Interval
Returns a new instance of GoogleCloudRetailV2Interval.
2305 2306 2307 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2305 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exclusive_maximum ⇒ Float
Exclusive upper bound.
Corresponds to the JSON property exclusiveMaximum
2288 2289 2290 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2288 def exclusive_maximum @exclusive_maximum end |
#exclusive_minimum ⇒ Float
Exclusive lower bound.
Corresponds to the JSON property exclusiveMinimum
2293 2294 2295 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2293 def exclusive_minimum @exclusive_minimum end |
#maximum ⇒ Float
Inclusive upper bound.
Corresponds to the JSON property maximum
2298 2299 2300 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2298 def maximum @maximum end |
#minimum ⇒ Float
Inclusive lower bound.
Corresponds to the JSON property minimum
2303 2304 2305 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2303 def minimum @minimum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2310 2311 2312 2313 2314 2315 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2310 def update!(**args) @exclusive_maximum = args[:exclusive_maximum] if args.key?(:exclusive_maximum) @exclusive_minimum = args[:exclusive_minimum] if args.key?(:exclusive_minimum) @maximum = args[:maximum] if args.key?(:maximum) @minimum = args[:minimum] if args.key?(:minimum) end |