Class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeInterval
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeInterval
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
Product attribute name and numeric interval.
Instance Attribute Summary collapse
-
#interval ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2Interval
A floating point interval.
-
#name ⇒ String
The attribute name (e.g. "length") Corresponds to the JSON property
name
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2ProductAttributeInterval
constructor
A new instance of GoogleCloudRetailV2ProductAttributeInterval.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2ProductAttributeInterval
Returns a new instance of GoogleCloudRetailV2ProductAttributeInterval.
3577 3578 3579 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3577 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interval ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2Interval
A floating point interval.
Corresponds to the JSON property interval
3570 3571 3572 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3570 def interval @interval end |
#name ⇒ String
The attribute name (e.g. "length")
Corresponds to the JSON property name
3575 3576 3577 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3575 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3582 3583 3584 3585 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3582 def update!(**args) @interval = args[:interval] if args.key?(:interval) @name = args[:name] if args.key?(:name) end |