Class: Google::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration
- 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
-
#currency_code ⇒ String
The curreny code string.
-
#num_decimal_places ⇒ Fixnum
The number of decimal places for number.
-
#number_format_type ⇒ String
The formatting for the number.
-
#suffix ⇒ Google::Apis::GamesConfigurationV1configuration::GamesNumberAffixConfiguration
A number affix resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GamesNumberFormatConfiguration
constructor
A new instance of GamesNumberFormatConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_code ⇒ String
The curreny code string. Only used for CURRENCY format type.
Corresponds to the JSON property currencyCode
225 226 227 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 225 def currency_code @currency_code end |
#num_decimal_places ⇒ Fixnum
The number of decimal places for number. Only used for NUMERIC format type.
Corresponds to the JSON property numDecimalPlaces
230 231 232 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 230 def num_decimal_places @num_decimal_places end |
#number_format_type ⇒ String
The formatting for the number.
Corresponds to the JSON property numberFormatType
235 236 237 |
# File 'generated/google/apis/games_configuration_v1configuration/classes.rb', line 235 def number_format_type @number_format_type end |
#suffix ⇒ Google::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 |