Sha256: cece487bd2f26821858f63044cd9cb7375e64130449ee0ff7589bf17ec1dd933

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 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 = '/api/cards.json?' + $.param(@query)
    if config.api_path
      url = config.api_path + url
    url
  parse: (response)->
    console.log response
    @page = response.page
    console.log @page
    response.cards

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
carte-server-0.0.14 lib/carte/client/models/cards.coffee
carte-server-0.0.13 lib/carte/client/models/cards.coffee