Sha256: 60fbdbd2a0014874ef728b5140e7dbe851ec0c6a8a6a0110870dc846464fc684

Contents?: true

Size: 624 Bytes

Versions: 8

Compression:

Stored size: 624 Bytes

Contents

class Helios.Models.Entity extends Backbone.Model
  idAttribute: "name"
  url: ->
    @get('resources').url.replace(/^\//, 'data/')

  parse: (response) ->
    response.resources = new Helios.Collections.Resources()
    response.resources.url = response.url
    response

class Helios.Models.Resource extends Backbone.Model
  idAttribute: "url"

class Helios.Models.Device extends Backbone.Model
  idAttribute: "token"

class Helios.Models.Receipt extends Backbone.Model
  idAttribute: "transaction_id"

class Helios.Models.Pass extends Backbone.Model

class Helios.Models.Issue extends Backbone.Model
  idAttribute: "name"

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
helios-0.4.1 ./lib/helios/frontend/javascripts/helios/models.coffee
helios-0.4.0 ./lib/helios/frontend/javascripts/helios/models.coffee
helios_aim-0.2.2 ./lib/helios/frontend/javascripts/helios/models.coffee
helios-0.3.0 ./lib/helios/frontend/javascripts/helios/models.coffee
helios-0.2.5 ./lib/helios/frontend/javascripts/helios/models.coffee
helios-0.2.4 ./lib/helios/frontend/javascripts/helios/models.coffee
helios-0.2.3 ./lib/helios/frontend/javascripts/helios/models.coffee
helios-0.2.2 ./lib/helios/frontend/javascripts/helios/models.coffee