Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonMoney

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb

Overview

Represents a price in a particular currency.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonMoney

Returns a new instance of GoogleAdsSearchads360V23CommonMoney.



8728
8729
8730
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8728

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

Instance Attribute Details

#amount_microsFixnum

Amount in micros. One million is equivalent to one unit. Corresponds to the JSON property amountMicros

Returns:

  • (Fixnum)


8721
8722
8723
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8721

def amount_micros
  @amount_micros
end

#currency_codeString

Three-character ISO 4217 currency code. Corresponds to the JSON property currencyCode

Returns:

  • (String)


8726
8727
8728
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8726

def currency_code
  @currency_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8733
8734
8735
8736
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8733

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