Class: ActionConductor::ActionRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/action_conductor/action_runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ActionRunner

Returns a new instance of ActionRunner.



4
5
6
7
# File 'lib/action_conductor/action_runner.rb', line 4

def initialize(options={})
  @controller = options.fetch(:controller)
  @conductors = options.fetch(:conductors)
end

Instance Method Details

#export(*options) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/action_conductor/action_runner.rb', line 9

def export(*options)
  @exported ||= {}
  @exported[options] ||= begin
    exported = export_with_options(options)
    exported.length == 1 ? exported.first : exported
  end
end