Class: Renalware::Feeds::File

Inherits:
ApplicationRecord show all
Extended by:
Enumerize
Includes:
Accountable
Defined in:
app/models/renalware/feeds/file.rb

Class Method Summary collapse

Methods included from Accountable

#first_or_create_by!, #save_by, #save_by!, #update_by

Class Method Details

.build(location:, file_type:, user: SystemUser.find) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'app/models/renalware/feeds/file.rb', line 22

def self.build(location:, file_type:, user: SystemUser.find)
  new(
    location: location,
    file_type: file_type,
    status: :waiting,
    updated_by: user,
    created_by: user
  )
end