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.



27141
27142
27143
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27141

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)


27117
27118
27119
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27117

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)


27122
27123
27124
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27122

def code
  @code
end

#nameString

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

Returns:

  • (String)


27127
27128
27129
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27127

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)


27133
27134
27135
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27133

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)


27139
27140
27141
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27139

def symbol
  @symbol
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27146
27147
27148
27149
27150
27151
27152
# File 'lib/google/apis/searchads360_v23/classes.rb', line 27146

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