Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval

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

Overview

A floating point interval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaInterval

Returns a new instance of GoogleCloudRetailV2betaInterval.



4768
4769
4770
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4768

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

Instance Attribute Details

#exclusive_maximumFloat

Exclusive upper bound. Corresponds to the JSON property exclusiveMaximum

Returns:

  • (Float)


4751
4752
4753
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4751

def exclusive_maximum
  @exclusive_maximum
end

#exclusive_minimumFloat

Exclusive lower bound. Corresponds to the JSON property exclusiveMinimum

Returns:

  • (Float)


4756
4757
4758
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4756

def exclusive_minimum
  @exclusive_minimum
end

#maximumFloat

Inclusive upper bound. Corresponds to the JSON property maximum

Returns:

  • (Float)


4761
4762
4763
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4761

def maximum
  @maximum
end

#minimumFloat

Inclusive lower bound. Corresponds to the JSON property minimum

Returns:

  • (Float)


4766
4767
4768
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4766

def minimum
  @minimum
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4773
4774
4775
4776
4777
4778
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4773

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