Class: ActionConductor::DeferredExport
- Inherits:
-
Object
- Object
- ActionConductor::DeferredExport
- Defined in:
- lib/action_conductor/deferred_export.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #export(context, export_value = nil) ⇒ Object
-
#initialize(id, &callback) ⇒ DeferredExport
constructor
A new instance of DeferredExport.
Constructor Details
#initialize(id, &callback) ⇒ DeferredExport
Returns a new instance of DeferredExport.
5 6 7 |
# File 'lib/action_conductor/deferred_export.rb', line 5 def initialize(id, &callback) @id, @callback = id, callback end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/action_conductor/deferred_export.rb', line 3 def id @id end |
Instance Method Details
#export(context, export_value = nil) ⇒ Object
9 10 11 |
# File 'lib/action_conductor/deferred_export.rb', line 9 def export(context, export_value=nil) context.instance_exec(export_value, &callback) end |