class Google::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration

This is a JSON template for a number format resource.

Attributes

currency_code[RW]

The curreny code string. Only used for CURRENCY format type. Corresponds to the JSON property `currencyCode` @return [String]

num_decimal_places[RW]

The number of decimal places for number. Only used for NUMERIC format type. Corresponds to the JSON property `numDecimalPlaces` @return [Fixnum]

number_format_type[RW]

The formatting for the number. Possible values are:

  • “NUMERIC” - Numbers are formatted to have no digits or a fixed number of

digits after the decimal point according to locale. An optional custom unit can be added.

  • “TIME_DURATION” - Numbers are formatted to hours, minutes and seconds.

  • “CURRENCY” - Numbers are formatted to currency according to locale.

Corresponds to the JSON property `numberFormatType` @return [String]

suffix[RW]

This is a JSON template for a number affix resource. Corresponds to the JSON property `suffix` @return [Google::Apis::GamesConfigurationV1configuration::GamesNumberAffixConfiguration]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/games_configuration_v1configuration/classes.rb, line 255
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/games_configuration_v1configuration/classes.rb, line 260
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