Sha256: ced7ecc60a6f1bb75cfe1feeced744585b352673dbecf466090d1ddcfbd73b38

Contents?: true

Size: 712 Bytes

Versions: 4

Compression:

Stored size: 712 Bytes

Contents

exoskeleton.models.load_status = Backbone.Model.extend( {
  initialize: function(){
    this.is_complete = false
    this.is_successful = false
    this.status_message = null
    this.is_error = false
  },

  set_completed: function(){
    this.is_complete = true
  },

  set_successful: function(){
    this.is_successful = true
  },

  set_message: function(message){
    this.status_message = message
  },

  set_system_error: function(){
    this.is_error = true
  },

  complete: function(){
    return this.is_complete
  },

  successful: function(){
    return this.is_successful
  },

  message: function(){
    return this.status_message
  },

  system_error: function(){
    return this.is_error
  }
})

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exoskeleton-0.0.6 app/assets/javascripts/exoskeleton/models/load_status.js
exoskeleton-0.0.5 app/assets/javascripts/exoskeleton/models/load_status.js
exoskeleton-0.0.4 app/assets/javascripts/exoskeleton/models/load_status.js
exoskeleton-0.0.3 app/assets/javascripts/exoskeleton/models/load_status.js