Class: Sipity::Models::DoiCreationRequest

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/sipity/models/doi_creation_request.rb

Overview

Responsible for tracking the state of a remote DOI request.

Constant Summary collapse

REQUEST_NOT_YET_SUBMITTED =
'request_not_yet_submitted'.freeze
REQUEST_SUBMITTED =
'request_submitted'.freeze
REQUEST_COMPLETED =
'request_completed'.freeze
REQUEST_FAILED =
'request_failed'.freeze

Instance Method Summary collapse

Instance Method Details

#set_initial_stateObject (private)


29
30
31
# File 'app/models/sipity/models/doi_creation_request.rb', line 29

def set_initial_state
  self.state ||= REQUEST_NOT_YET_SUBMITTED
end