Class: Dsu::Presenters::Import::AllPresenter
- Inherits:
-
BasePresenterEx
- Object
- BasePresenterEx
- Dsu::Presenters::Import::AllPresenter
- Includes:
- ImportEntry, ImportFile
- Defined in:
- lib/dsu/presenters/import/all_presenter.rb
Instance Attribute Summary collapse
-
#import_file_path ⇒ Object
readonly
Returns the value of attribute import_file_path.
-
#import_messages ⇒ Object
readonly
Returns the value of attribute import_messages.
Instance Method Summary collapse
-
#initialize(import_file_path:, options: {}) ⇒ AllPresenter
constructor
A new instance of AllPresenter.
- #project_name ⇒ Object
- #respond ⇒ Object
Methods included from ImportFile
#import_entry_groups_count, #import_file_path_exist?, #nothing_to_import?
Methods included from ImportEntry
Constructor Details
#initialize(import_file_path:, options: {}) ⇒ AllPresenter
Returns a new instance of AllPresenter.
18 19 20 21 22 |
# File 'lib/dsu/presenters/import/all_presenter.rb', line 18 def initialize(import_file_path:, options: {}) super(options: ) @import_file_path = import_file_path end |
Instance Attribute Details
#import_file_path ⇒ Object (readonly)
Returns the value of attribute import_file_path.
16 17 18 |
# File 'lib/dsu/presenters/import/all_presenter.rb', line 16 def import_file_path @import_file_path end |
#import_messages ⇒ Object (readonly)
Returns the value of attribute import_messages.
16 17 18 |
# File 'lib/dsu/presenters/import/all_presenter.rb', line 16 def end |
Instance Method Details
#project_name ⇒ Object
28 29 30 |
# File 'lib/dsu/presenters/import/all_presenter.rb', line 28 def project_name @project_name ||= Models::Project.current_project.project_name end |
#respond ⇒ Object
24 25 26 |
# File 'lib/dsu/presenters/import/all_presenter.rb', line 24 def respond = importer_service.call end |