Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/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) ⇒ GoogleCloudRetailV2alphaInterval
constructor
A new instance of GoogleCloudRetailV2alphaInterval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaInterval
Returns a new instance of GoogleCloudRetailV2alphaInterval.
3601 3602 3603 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3601 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exclusive_maximum ⇒ Float
Exclusive upper bound.
Corresponds to the JSON property exclusiveMaximum
3584 3585 3586 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3584 def exclusive_maximum @exclusive_maximum end |
#exclusive_minimum ⇒ Float
Exclusive lower bound.
Corresponds to the JSON property exclusiveMinimum
3589 3590 3591 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3589 def exclusive_minimum @exclusive_minimum end |
#maximum ⇒ Float
Inclusive upper bound.
Corresponds to the JSON property maximum
3594 3595 3596 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3594 def maximum @maximum end |
#minimum ⇒ Float
Inclusive lower bound.
Corresponds to the JSON property minimum
3599 3600 3601 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3599 def minimum @minimum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3606 3607 3608 3609 3610 3611 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3606 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 |