Sha256: e780945ec04353150760922f81bdff80f54cc101369f8bf49d1e74f9f2105142

Contents?: true

Size: 408 Bytes

Versions: 4

Compression:

Stored size: 408 Bytes

Contents

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

module.exports = class Cards extends Backbone.Collection
  collectionName: 'Cards'

  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

4 entries across 4 versions & 1 rubygems

Version Path
carte-server-1.0.11 lib/carte/client/models/cards.coffee
carte-server-1.0.10 lib/carte/client/models/cards.coffee
carte-server-1.0.9 lib/carte/client/models/cards.coffee
carte-server-1.0.8 lib/carte/client/models/cards.coffee