class Spaceship::ConnectAPI::AppCategory

Constants

LEGACY_CATEGORY_ITC_MAP
LEGACY_SUBCATEGORY_ITC_MAP

Attributes

platforms[RW]

Public Class Methods

map_category_from_itc(category) click to toggle source
# File spaceship/lib/spaceship/connect_api/models/app_category.rb, line 81
def self.map_category_from_itc(category)
  category = category.gsub("MZGenre.", "")
  return nil if category.empty?
  LEGACY_CATEGORY_ITC_MAP[category] || category
end
map_subcategory_from_itc(category) click to toggle source
# File spaceship/lib/spaceship/connect_api/models/app_category.rb, line 87
def self.map_subcategory_from_itc(category)
  category = category.gsub("MZGenre.", "")
  return nil if category.empty?
  LEGACY_SUBCATEGORY_ITC_MAP[category] || category
end
type() click to toggle source
# File spaceship/lib/spaceship/connect_api/models/app_category.rb, line 13
def self.type
  return "appCategories"
end