Class: BulkActionDocument

Inherits:
ApplicationRecord show all
Defined in:
app/models/bulk_action_document.rb

Overview

BulkActionDocument class

Instance Method Summary collapse

Instance Method Details

#state_machineObject



12
13
14
# File 'app/models/bulk_action_document.rb', line 12

def state_machine
  @state_machine ||= BulkActionDocumentStateMachine.new(self, transition_class: BulkActionDocumentTransition)
end

#to_hashObject

@TODO: Needed?



17
18
19
20
21
# File 'app/models/bulk_action_document.rb', line 17

def to_hash
  {
    friendlier_id: friendlier_id
  }
end