Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductAttributeInterval

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

Product attribute name and numeric interval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaProductAttributeInterval

Returns a new instance of GoogleCloudRetailV2betaProductAttributeInterval.



6225
6226
6227
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6225

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

Instance Attribute Details

#intervalGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval

A floating point interval. Corresponds to the JSON property interval



6218
6219
6220
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6218

def interval
  @interval
end

#nameString

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

Returns:

  • (String)


6223
6224
6225
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6223

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6230
6231
6232
6233
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6230

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