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.



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

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)


8653
8654
8655
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8653

def amount_micros
  @amount_micros
end

#currency_codeString

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

Returns:

  • (String)


8658
8659
8660
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8658

def currency_code
  @currency_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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