Skip to content

Instantly share code, notes, and snippets.

@alvarosanchez
Last active August 29, 2015 14:02
Show Gist options
  • Save alvarosanchez/d4ef79ef29d9c8077696 to your computer and use it in GitHub Desktop.
Save alvarosanchez/d4ef79ef29d9c8077696 to your computer and use it in GitHub Desktop.
def castleBuilder = new Game(name: 'Castle Builder').save()
def amazingCircus = new Game(name: 'The Amazing Circus').save()
def pokerDrop = new Game(name: 'Poker Drop Riches').save()
def petsPayDay = new Game(name: "Pet's Pay Day").save()
def grandBlackjack = new Game(name: 'Grand Blackjack').save()
@Resource(uri = '/games')
class Game {
String name
static constraints = {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment