Class: Mode::Connector::Commands::SelectReportRunDataset

Inherits:
Object
  • Object
show all
Defined in:
lib/mode/connector/commands/select_report_run_dataset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, data_sources) ⇒ SelectReportRunDataset

Returns a new instance of SelectReportRunDataset.



7
8
9
10
# File 'lib/mode/connector/commands/select_report_run_dataset.rb', line 7

def initialize(command, data_sources)
  @command     = command
  @data_sources = data_sources
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



5
6
7
# File 'lib/mode/connector/commands/select_report_run_dataset.rb', line 5

def command
  @command
end

#data_sourcesObject (readonly)

Returns the value of attribute data_sources.



5
6
7
# File 'lib/mode/connector/commands/select_report_run_dataset.rb', line 5

def data_sources
  @data_sources
end

Instance Method Details

#perform!Object



12
13
14
15
16
17
18
# File 'lib/mode/connector/commands/select_report_run_dataset.rb', line 12

def perform!
  upload(dataset)
rescue => err
  Mode::Logger.instance.error(
    self.class.name, err.message, err.backtrace)
  error(err.message, err.backtrace.join("\n"))
end