Class: Conductor::Base
- Inherits:
-
Object
- Object
- Conductor::Base
- Defined in:
- lib/conductor/base.rb
Instance Method Summary collapse
- #export(*args) ⇒ Object
- #export_keys ⇒ Object
- #exports ⇒ Object
-
#initialize(controller) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(controller) ⇒ Base
Returns a new instance of Base.
5 6 7 8 |
# File 'lib/conductor/base.rb', line 5 def initialize(controller) @controller = controller @params = controller.params end |
Instance Method Details
#export(*args) ⇒ Object
10 11 12 |
# File 'lib/conductor/base.rb', line 10 def export(*args) Exporter.new(self).export(args) end |
#export_keys ⇒ Object
18 19 20 |
# File 'lib/conductor/base.rb', line 18 def export_keys exports.map(&:id) end |
#exports ⇒ Object
14 15 16 |
# File 'lib/conductor/base.rb', line 14 def exports self.class.exports end |