Class: Google::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/games_configuration_v1configuration/classes.rb,
generated/google/apis/games_configuration_v1configuration/representations.rb,
generated/google/apis/games_configuration_v1configuration/representations.rb

Overview

A number format resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GamesNumberFormatConfiguration

Returns a new instance of GamesNumberFormatConfiguration.



242
243
244
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 242

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

Instance Attribute Details

#currency_codeString

The curreny code string. Only used for CURRENCY format type. Corresponds to the JSON property currencyCode

Returns:

  • (String)


225
226
227
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 225

def currency_code
  @currency_code
end

#num_decimal_placesFixnum

The number of decimal places for number. Only used for NUMERIC format type. Corresponds to the JSON property numDecimalPlaces

Returns:

  • (Fixnum)


230
231
232
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 230

def num_decimal_places
  @num_decimal_places
end

#number_format_typeString

The formatting for the number. Corresponds to the JSON property numberFormatType

Returns:

  • (String)


235
236
237
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 235

def number_format_type
  @number_format_type
end

#suffixGoogle::Apis::GamesConfigurationV1configuration::GamesNumberAffixConfiguration

A number affix resource. Corresponds to the JSON property suffix



240
241
242
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 240

def suffix
  @suffix
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



247
248
249
250
251
252
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 247

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