Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductAttributeInterval
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductAttributeInterval
- 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
Product attribute name and numeric interval.
Instance Attribute Summary collapse
-
#interval ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval
A floating point interval.
-
#name ⇒ String
The attribute name (e.g. "length") Corresponds to the JSON property
name
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaProductAttributeInterval
constructor
A new instance of GoogleCloudRetailV2betaProductAttributeInterval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaProductAttributeInterval
Returns a new instance of GoogleCloudRetailV2betaProductAttributeInterval.
6170 6171 6172 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6170 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interval ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval
A floating point interval.
Corresponds to the JSON property interval
6163 6164 6165 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6163 def interval @interval end |
#name ⇒ String
The attribute name (e.g. "length")
Corresponds to the JSON property name
6168 6169 6170 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6168 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6175 6176 6177 6178 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6175 def update!(**args) @interval = args[:interval] if args.key?(:interval) @name = args[:name] if args.key?(:name) end |