Class: ActionConductor::Exporter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(conductor) ⇒ Exporter

Returns a new instance of Exporter.



6
7
8
# File 'lib/action_conductor/exporter.rb', line 6

def initialize(conductor)
  @conductor = conductor
end

Instance Attribute Details

#conductorObject (readonly)

Returns the value of attribute conductor.



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

def conductor
  @conductor
end

Instance Method Details

#export(arguments) ⇒ Object



10
11
12
13
# File 'lib/action_conductor/exporter.rb', line 10

def export(arguments)
  @arguments = arguments
  output.length == 1 ? output.first : output
end