Sha256: 54882d8d22317f2c9fde22021aaa7b0e1e949b77c3faaf58b8c514b2ecb2a08a

Contents?: true

Size: 626 Bytes

Versions: 2

Compression:

Stored size: 626 Bytes

Contents

class Skr.Models.Address extends Skr.Models.Base


    props:
        id:         {type:"integer"}
        name:       "string"
        email:      "string"
        phone:      "string"
        line1:      "string"
        line2:      "string"
        city:       "string"
        state:      "string"
        postal_code:"string"

    session:
        parent: 'object'

    modelForAccess: ->
        @parent || this

    clonedAttributes: ->
        _.omit @serialize(), 'id'


    toString: ->
        line3 = _.compact([ @city, @state, @postal_code ]).join(' ')
        _.compact([@line1, @line2, line3]).join("\n") || ''

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stockor-0.5.0 client/skr/models/Address.coffee
stockor-0.4.0 client/skr/models/Address.coffee