Class: Logistics::Core::OperationDocument

Inherits:
ApplicationRecord show all
Defined in:
app/models/logistics/core/operation_document.rb

Instance Method Summary collapse

Methods inherited from ApplicationRecord

as_json

Instance Method Details

#acceptor_nameObject



18
19
20
# File 'app/models/logistics/core/operation_document.rb', line 18

def acceptor_name
  self.acceptor&.first_name.to_s + ' ' + self.acceptor&.last_name.to_s
end

#user_nameObject



14
15
16
# File 'app/models/logistics/core/operation_document.rb', line 14

def user_name
  self.user&.first_name.to_s + ' ' + self.user&.last_name.to_s
end