Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1NumericRangeConstraint

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#maximumFixnum

Maximum value. Corresponds to the JSON property maximum

Returns:

  • (Fixnum)


585
586
587
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 585

def maximum
  @maximum
end

#minimumFixnum

Minimum value. Corresponds to the JSON property minimum

Returns:

  • (Fixnum)


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