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.
632 633 634 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 632 def initialize(**args) update!(**args) end |
Instance Attribute Details
#maximum ⇒ Fixnum
Maximum value.
Corresponds to the JSON property maximum
625 626 627 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 625 def maximum @maximum end |
#minimum ⇒ Fixnum
Minimum value.
Corresponds to the JSON property minimum
630 631 632 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 630 def minimum @minimum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
637 638 639 640 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 637 def update!(**args) @maximum = args[:maximum] if args.key?(:maximum) @minimum = args[:minimum] if args.key?(:minimum) end |