class Google::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration
This is a JSON template for a number format resource.
Attributes
The curreny code string. Only used for CURRENCY format type. Corresponds to the JSON property `currencyCode` @return [String]
The number of decimal places for number. Only used for NUMERIC format type. Corresponds to the JSON property `numDecimalPlaces` @return [Fixnum]
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]
This is a JSON template for a number affix resource. Corresponds to the JSON property `suffix` @return [Google::Apis::GamesConfigurationV1configuration::GamesNumberAffixConfiguration]
Public Class Methods
# File generated/google/apis/games_configuration_v1configuration/classes.rb, line 255 def initialize(**args) update!(**args) end
Public Instance Methods
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