Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonMoney
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonMoney
- 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
-
#amount_micros ⇒ Fixnum
Amount in micros.
-
#currency_code ⇒ String
Three-character ISO 4217 currency code.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonMoney
constructor
A new instance of GoogleAdsSearchads360V23CommonMoney.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_micros ⇒ Fixnum
Amount in micros. One million is equivalent to one unit.
Corresponds to the JSON property amountMicros
8653 8654 8655 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8653 def amount_micros @amount_micros end |
#currency_code ⇒ String
Three-character ISO 4217 currency code.
Corresponds to the JSON property currencyCode
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 |