Class: Dsu::Presenters::Import::AllPresenter

Inherits:
BasePresenterEx show all
Includes:
ImportEntry, ImportFile
Defined in:
lib/dsu/presenters/import/all_presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ImportFile

#import_entry_groups_count, #import_file_path_exist?, #nothing_to_import?

Methods included from ImportEntry

#overriding_project?

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: options)

  @import_file_path = import_file_path
end

Instance Attribute Details

#import_file_pathObject (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_messagesObject (readonly)

Returns the value of attribute import_messages.



16
17
18
# File 'lib/dsu/presenters/import/all_presenter.rb', line 16

def import_messages
  @import_messages
end

Instance Method Details

#project_nameObject



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

#respondObject



24
25
26
# File 'lib/dsu/presenters/import/all_presenter.rb', line 24

def respond
  @import_messages = importer_service.call
end