class Google::Apis::ContentV2_1::PriceAmount

The price represented as a number and currency.

Attributes

currency[RW]

The currency of the price. Corresponds to the JSON property `currency` @return [String]

value[RW]

The price represented as a number. Corresponds to the JSON property `value` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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