Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1NumericRangeConstraint
- Inherits:
-
Object
- Object
- Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1NumericRangeConstraint
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chromepolicy_v1/classes.rb,
lib/google/apis/chromepolicy_v1/representations.rb,
lib/google/apis/chromepolicy_v1/representations.rb
Overview
A constraint on upper and/or lower bounds, with at least one being set.
Instance Attribute Summary collapse
-
#maximum ⇒ Fixnum
Maximum value.
-
#minimum ⇒ Fixnum
Minimum value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1NumericRangeConstraint
constructor
A new instance of GoogleChromePolicyVersionsV1NumericRangeConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1NumericRangeConstraint
Returns a new instance of GoogleChromePolicyVersionsV1NumericRangeConstraint.
620 621 622 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 620 def initialize(**args) update!(**args) end |
Instance Attribute Details
#maximum ⇒ Fixnum
Maximum value.
Corresponds to the JSON property maximum
613 614 615 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 613 def maximum @maximum end |
#minimum ⇒ Fixnum
Minimum value.
Corresponds to the JSON property minimum
618 619 620 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 618 def minimum @minimum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
625 626 627 628 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 625 def update!(**args) @maximum = args[:maximum] if args.key?(:maximum) @minimum = args[:minimum] if args.key?(:minimum) end |