class Google::Apis::ContentV2::Amount

Attributes

pretax[RW]
required

Value before taxes.

Corresponds to the JSON property `pretax` @return [Google::Apis::ContentV2::Price]

tax[RW]
required

Tax value.

Corresponds to the JSON property `tax` @return [Google::Apis::ContentV2::Price]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 1514
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/classes.rb, line 1519
def update!(**args)
  @pretax = args[:pretax] if args.key?(:pretax)
  @tax = args[:tax] if args.key?(:tax)
end