Class: Services::MdsFileProcessingContext
- Inherits:
-
Object
- Object
- Services::MdsFileProcessingContext
- Defined in:
- app/contexts/services/mds_file_processing_context.rb
Instance Attribute Summary collapse
-
#mds_upload ⇒ Object
readonly
Returns the value of attribute mds_upload.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(mds_upload) ⇒ MdsFileProcessingContext
constructor
A new instance of MdsFileProcessingContext.
Constructor Details
#initialize(mds_upload) ⇒ MdsFileProcessingContext
Returns a new instance of MdsFileProcessingContext.
11 12 13 14 15 |
# File 'app/contexts/services/mds_file_processing_context.rb', line 11 def initialize(mds_upload) @mds_upload = mds_upload @mds_upload.extend MdsFileProcessor end |
Instance Attribute Details
#mds_upload ⇒ Object (readonly)
Returns the value of attribute mds_upload.
5 6 7 |
# File 'app/contexts/services/mds_file_processing_context.rb', line 5 def mds_upload @mds_upload end |
Class Method Details
.call(mds_upload) ⇒ Object
7 8 9 |
# File 'app/contexts/services/mds_file_processing_context.rb', line 7 def self.call(mds_upload) MdsFileProcessingContext.new(mds_upload).call end |
Instance Method Details
#call ⇒ Object
17 18 19 20 21 22 |
# File 'app/contexts/services/mds_file_processing_context.rb', line 17 def call mds_upload.process # Now tell the application to do its thing Services::ApplicationMdsContext.call mds_upload end |