Sha256: 20b08ddeb03f718bc53c9ec685bc62bc0847e483f071a30022ac5af10411c9a7

Contents?: true

Size: 381 Bytes

Versions: 11

Compression:

Stored size: 381 Bytes

Contents

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

module.exports = class Cards extends Backbone.Collection
  model: CardModel
  query: {}
  url: ()->
    url = '/cards.json?' + $.param(@query)
    config.root_path + config.api_path + url
  parse: (response)->
    @pagination = response.pagination
    response.cards

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
carte-server-1.0.7 lib/carte/client/models/cards.coffee
carte-server-1.0.6 lib/carte/client/models/cards.coffee
carte-server-1.0.5 lib/carte/client/models/cards.coffee
carte-server-1.0.4 lib/carte/client/models/cards.coffee
carte-server-1.0.3 lib/carte/client/models/cards.coffee
carte-server-1.0.2 lib/carte/client/models/cards.coffee
carte-server-1.0.1 lib/carte/client/models/cards.coffee
carte-server-1.0.0 lib/carte/client/models/cards.coffee
carte-server-0.0.28 lib/carte/client/models/cards.coffee
carte-server-0.0.27 lib/carte/client/models/cards.coffee
carte-server-0.0.26 lib/carte/client/models/cards.coffee