{I" class:ETI"ProcessedAsset;FI"logical_path;TI"!sprangular/models/address.js;FI" pathname;TI"b/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/models/address.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+Ô7$UI" length;TiÏI" digest;TI"%111cd732ca27b0f67e8bbed9b2980a79;FI" source;TI"Ï(function() { 'use strict'; Sprangular.Address = (function() { function Address() {} Validity.define(Address, { firstname: 'required', lastname: 'required', address1: 'required', city: 'required', state: 'required', country: 'required', zipcode: 'required', phone: 'required' }); Address.prototype.init = function() { this.stateId = this.state_id; return this.countryId = this.country_id; }; Address.prototype.fullName = function() { return this.firstname + " " + this.lastname; }; Address.prototype.shortAddress = function() { return (this.fullName()) + ", " + (this.addressLine()); }; Address.prototype.actualStateName = function() { var ref; return ((ref = this.state) != null ? ref.abbr : void 0) || this.state_name; }; Address.prototype.addressLine = function() { if (this.address2) { return this.address1 + " " + this.address2; } else { return this.address1; } }; Address.prototype.serialize = function() { return { firstname: this.firstname, lastname: this.lastname, address1: this.address1, address2: this.address2, city: this.city, phone: this.phone, zipcode: this.zipcode, state_id: this.stateId, country_id: this.countryId }; }; Address.prototype.isEmpty = function() { return !this.firstname && !this.lastname && !this.address1 && !this.address2 && !this.city && !this.phone && !this.zipcode && !this.countryId && !this.stateId; }; Address.prototype.same = function(other) { return this.firstname === other.firstname && this.lastname === other.lastname && this.address1 === other.address1 && this.address2 === other.address2 && this.city === other.city && this.phone === other.phone && this.zipcode === other.zipcode && this.countryId === other.countryId && this.stateId === other.stateId; }; Address.prototype.key = function() { return [this.firstname, this.lastname, this.address1, this.address2, this.city, this.phone, this.zipcode, this.countryId, this.stateId].join(''); }; return Address; })(); }).call(this); ;TI"dependency_digest;TI"%6c50b03d939ee27d60cfae9be66abaf1;FI"required_paths;T[I"b/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/models/address.coffee;FI"dependency_paths;T[{I" path;TI"b/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/models/address.coffee;FI" mtime;TI"2015-04-07T16:02:28-04:00;TI" digest;TI"%52576e759a36766fd80fc5382fa6ec85;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F