Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoParamSpecEntryValidationRuleDoubleRange

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/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.



1944
1945
1946
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1944

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)


1937
1938
1939
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1937

def max
  @max
end

#minFloat

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

Returns:

  • (Float)


1942
1943
1944
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1942

def min
  @min
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1949
1950
1951
1952
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1949

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