Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval

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

Overview

A floating point interval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaInterval

Returns a new instance of GoogleCloudRetailV2alphaInterval.



3786
3787
3788
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3786

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

Instance Attribute Details

#exclusive_maximumFloat

Exclusive upper bound. Corresponds to the JSON property exclusiveMaximum

Returns:

  • (Float)


3769
3770
3771
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3769

def exclusive_maximum
  @exclusive_maximum
end

#exclusive_minimumFloat

Exclusive lower bound. Corresponds to the JSON property exclusiveMinimum

Returns:

  • (Float)


3774
3775
3776
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3774

def exclusive_minimum
  @exclusive_minimum
end

#maximumFloat

Inclusive upper bound. Corresponds to the JSON property maximum

Returns:

  • (Float)


3779
3780
3781
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3779

def maximum
  @maximum
end

#minimumFloat

Inclusive lower bound. Corresponds to the JSON property minimum

Returns:

  • (Float)


3784
3785
3786
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3784

def minimum
  @minimum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3791
3792
3793
3794
3795
3796
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3791

def update!(**args)
  @exclusive_maximum = args[:exclusive_maximum] if args.key?(:exclusive_maximum)
  @exclusive_minimum = args[:exclusive_minimum] if args.key?(:exclusive_minimum)
  @maximum = args[:maximum] if args.key?(:maximum)
  @minimum = args[:minimum] if args.key?(:minimum)
end