Class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductAttributeInterval

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2ProductAttributeInterval

Returns a new instance of GoogleCloudRetailV2ProductAttributeInterval.



3531
3532
3533
# File 'lib/google/apis/retail_v2/classes.rb', line 3531

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

Instance Attribute Details

#intervalGoogle::Apis::RetailV2::GoogleCloudRetailV2Interval

A floating point interval. Corresponds to the JSON property interval



3524
3525
3526
# File 'lib/google/apis/retail_v2/classes.rb', line 3524

def interval
  @interval
end

#nameString

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

Returns:

  • (String)


3529
3530
3531
# File 'lib/google/apis/retail_v2/classes.rb', line 3529

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3536
3537
3538
3539
# File 'lib/google/apis/retail_v2/classes.rb', line 3536

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