Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/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) ⇒ GoogleCloudRetailV2betaInterval
constructor
A new instance of GoogleCloudRetailV2betaInterval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaInterval
Returns a new instance of GoogleCloudRetailV2betaInterval.
4442 4443 4444 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4442 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exclusive_maximum ⇒ Float
Exclusive upper bound.
Corresponds to the JSON property exclusiveMaximum
4425 4426 4427 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4425 def exclusive_maximum @exclusive_maximum end |
#exclusive_minimum ⇒ Float
Exclusive lower bound.
Corresponds to the JSON property exclusiveMinimum
4430 4431 4432 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4430 def exclusive_minimum @exclusive_minimum end |
#maximum ⇒ Float
Inclusive upper bound.
Corresponds to the JSON property maximum
4435 4436 4437 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4435 def maximum @maximum end |
#minimum ⇒ Float
Inclusive lower bound.
Corresponds to the JSON property minimum
4440 4441 4442 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4440 def minimum @minimum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4447 4448 4449 4450 4451 4452 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4447 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 |