class Google::Apis::ManufacturersV1::Price

A price.

Attributes

amount[RW]

The numeric value of the price. Corresponds to the JSON property `amount` @return [String]

currency[RW]

The currency in which the price is denoted. Corresponds to the JSON property `currency` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/manufacturers_v1/classes.rb, line 554
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/manufacturers_v1/classes.rb, line 559
def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @currency = args[:currency] if args.key?(:currency)
end