Method: Spaceship::ConnectAPI::AgeRatingDeclaration.map_value_from_itc
- Defined in:
- spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb
.map_value_from_itc(key, value) ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 |
# File 'spaceship/lib/spaceship/connect_api/models/age_rating_declaration.rb', line 92 def self.map_value_from_itc(key, value) if ["gamblingAndContests", "unrestrictedWebAccess"].include?(key) new_value = LEGACY_BOOLEAN_VALUE_ITC_MAP[value] return value if new_value.nil? return new_value else return LEGACY_RATING_VALUE_ITC_MAP[value] || value end return value end |