Sha256: 81fd9823836ff408f0d4ffdaaf91b50f72699003ea3c1cf274844c0dd0e5c0d9

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 Bytes

Contents

Backbone = require('backbone')
CardModel = require('./card')
$ = require('jquery')

module.exports = class Cards extends Backbone.Collection
  model: CardModel
  query: {}
  url: ()->
      '/api/cards.json?' + $.param(@query)
  parse: (response)->
    console.log response
    @page = response.page
    console.log @page
    response.cards

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
carte-server-0.0.7 lib/carte/client/models/cards.coffee
carte-server-0.0.6 lib/carte/client/models/cards.coffee
carte-server-0.0.5 lib/carte/client/models/cards.coffee
carte-server-0.0.4 lib/carte/client/models/cards.coffee
carte-server-0.0.3 lib/carte/client/models/cards.coffee
carte-server-0.0.1 lib/carte/client/models/cards.coffee