Class: Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/representations.rb

Overview

Range used to validate doubles and floats.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange

Returns a new instance of EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange.



1989
1990
1991
# File 'lib/google/apis/integrations_v1/classes.rb', line 1989

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#maxFloat

The inclusive maximum of the acceptable range. Corresponds to the JSON property max

Returns:

  • (Float)


1982
1983
1984
# File 'lib/google/apis/integrations_v1/classes.rb', line 1982

def max
  @max
end

#minFloat

The inclusive minimum of the acceptable range. Corresponds to the JSON property min

Returns:

  • (Float)


1987
1988
1989
# File 'lib/google/apis/integrations_v1/classes.rb', line 1987

def min
  @min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1994
1995
1996
1997
# File 'lib/google/apis/integrations_v1/classes.rb', line 1994

def update!(**args)
  @max = args[:max] if args.key?(:max)
  @min = args[:min] if args.key?(:min)
end