VRFS-2795 filled out JSON_SCHEMA

This commit is contained in:
Jonathan Kolyer 2015-02-28 22:45:43 +00:00
parent 171dcb04f0
commit bfd3f3fac6
1 changed files with 7 additions and 6 deletions

View File

@ -14,6 +14,7 @@ module JamRuby
KEY_GENRES = 'genres'
KEY_INSTRUMENTS = 'instruments'
KEY_INTERESTS = 'interests'
KEY_SORT_ORDER = 'sort_order'
SORT_VALS = %W{ latency distance }
SORT_ORDERS = {
@ -81,14 +82,14 @@ module JamRuby
}
JSON_SCHEMA = {
:sort_order => '',
KEY_SORT_ORDER => SORT_VALS[0],
KEY_INSTRUMENTS => [],
KEY_INTERESTS => '',
KEY_INTERESTS => INTEREST_VALS[0],
KEY_GENRES => [],
KEY_GIGS => 0,
KEY_STUDIOS => '',
KEY_SKILL => '',
KEY_AGES => []
KEY_GIGS => GIG_COUNTS[0],
KEY_STUDIOS => STUDIO_COUNTS[0],
KEY_SKILL => SKILL_VALS[0],
KEY_AGES => [AGE_COUNTS[0]]
}
def self.create_search(user)