Class: Services::MdsPush

Inherits:
ServiceImplementation show all
Defined in:
app/models/services/mds_push.rb

Direct Known Subclasses

AbaqisMdsPush

Instance Attribute Summary

Attributes inherited from ServiceImplementation

#service_definition

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ServiceImplementation

#account_map, #initialize, #server_credentials

Constructor Details

This class inherits a constructor from Services::ServiceImplementation

Class Method Details

.service_implObject



14
15
16
# File 'app/models/services/mds_push.rb', line 14

def self.service_impl
  nil
end

Instance Method Details

#invokeObject



5
6
# File 'app/models/services/mds_push.rb', line 5

def invoke
end

#push_mds_file(available_file) ⇒ Object



8
9
10
11
12
# File 'app/models/services/mds_push.rb', line 8

def push_mds_file(available_file)
  raise "Downloaded file does not exist: #{available_file.downloaded_file_path}" unless available_file.downloaded_file_exists?
  raise "Downloaded file is not valid MDS: #{available_file.downloaded_file_path}" unless available_file.valid_mds_file?
  submit_to_service(available_file)
end

#submit_to_service(available_file) ⇒ Object



18
19
20
# File 'app/models/services/mds_push.rb', line 18

def submit_to_service(available_file)
  puts "## Submitting MDS file to service"
end