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.
592 593 594 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 592 def initialize(**args) update!(**args) end |
Instance Attribute Details
#maximum ⇒ Fixnum
Maximum value.
Corresponds to the JSON property maximum
585 586 587 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 585 def maximum @maximum end |
#minimum ⇒ Fixnum
Minimum value.
Corresponds to the JSON property minimum
590 591 592 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 590 def minimum @minimum end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
597 598 599 600 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 597 def update!(**args) @maximum = args[:maximum] if args.key?(:maximum) @minimum = args[:minimum] if args.key?(:minimum) end |