Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesCurrencyConstant

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

A currency constant.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesCurrencyConstant

Returns a new instance of GoogleAdsSearchads360V23ResourcesCurrencyConstant.



27054
27055
27056
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27054

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

Instance Attribute Details

#billable_unit_microsFixnum

Output only. The billable unit for this currency. Billed amounts should be multiples of this value. Corresponds to the JSON property billableUnitMicros

Returns:

  • (Fixnum)


27030
27031
27032
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27030

def billable_unit_micros
  @billable_unit_micros
end

#codeString

Output only. ISO 4217 three-letter currency code, for example, "USD" Corresponds to the JSON property code

Returns:

  • (String)


27035
27036
27037
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27035

def code
  @code
end

#nameString

Output only. Full English name of the currency. Corresponds to the JSON property name

Returns:

  • (String)


27040
27041
27042
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27040

def name
  @name
end

#resource_nameString

Output only. The resource name of the currency constant. Currency constant resource names have the form: currencyConstants/code` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


27046
27047
27048
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27046

def resource_name
  @resource_name
end

#symbolString

Output only. Standard symbol for describing this currency, for example, '$' for US Dollars. Corresponds to the JSON property symbol

Returns:

  • (String)


27052
27053
27054
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27052

def symbol
  @symbol
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27059
27060
27061
27062
27063
27064
27065
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27059

def update!(**args)
  @billable_unit_micros = args[:billable_unit_micros] if args.key?(:billable_unit_micros)
  @code = args[:code] if args.key?(:code)
  @name = args[:name] if args.key?(:name)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @symbol = args[:symbol] if args.key?(:symbol)
end