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.



8668
8669
8670
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8668

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)


8661
8662
8663
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8661

def amount_micros
  @amount_micros
end

#currency_codeString

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

Returns:

  • (String)


8666
8667
8668
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8666

def currency_code
  @currency_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8673
8674
8675
8676
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8673

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