Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeInterval
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeInterval
- 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
Product attribute name and numeric interval.
Instance Attribute Summary collapse
-
#interval ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval
A floating point interval.
-
#name ⇒ String
The attribute name (e.g. "length") Corresponds to the JSON property
name
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaProductAttributeInterval
constructor
A new instance of GoogleCloudRetailV2alphaProductAttributeInterval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaProductAttributeInterval
Returns a new instance of GoogleCloudRetailV2alphaProductAttributeInterval.
5575 5576 5577 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5575 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interval ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval
A floating point interval.
Corresponds to the JSON property interval
5568 5569 5570 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5568 def interval @interval end |
#name ⇒ String
The attribute name (e.g. "length")
Corresponds to the JSON property name
5573 5574 5575 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5573 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5580 5581 5582 5583 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5580 def update!(**args) @interval = args[:interval] if args.key?(:interval) @name = args[:name] if args.key?(:name) end |