Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductAttributeInterval

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

Product attribute name and numeric interval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaProductAttributeInterval

Returns a new instance of GoogleCloudRetailV2alphaProductAttributeInterval.



6251
6252
6253
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6251

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

Instance Attribute Details

#intervalGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaInterval

A floating point interval. Corresponds to the JSON property interval



6244
6245
6246
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6244

def interval
  @interval
end

#nameString

The attribute name (e.g. "length") Corresponds to the JSON property name

Returns:

  • (String)


6249
6250
6251
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6249

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6256
6257
6258
6259
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6256

def update!(**args)
  @interval = args[:interval] if args.key?(:interval)
  @name = args[:name] if args.key?(:name)
end