Method: PortalModule::LoanEntry#upload

Defined in:
lib/portal_module/loan_entry.rb

#upload(org, file_path) ⇒ Object

Import loan entry data from a file



68
69
70
71
72
73
74
75
# File 'lib/portal_module/loan_entry.rb', line 68

def upload org, file_path
  assert_org_is_configured org
  assert_file_exists file_path

  loan_entry_page
    .load_org(org_string(org))
    .upload(Pathname(file_path).expand_path)
end