Class: ActionConductor::Exporter
- Inherits:
-
Object
- Object
- ActionConductor::Exporter
- Defined in:
- lib/action_conductor/exporter.rb
Instance Attribute Summary collapse
-
#conductor ⇒ Object
readonly
Returns the value of attribute conductor.
Instance Method Summary collapse
- #export(arguments) ⇒ Object
-
#initialize(conductor) ⇒ Exporter
constructor
A new instance of Exporter.
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
#conductor ⇒ Object (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 |