Class: ActiveRecord::Futures::FutureValue
- Inherits:
-
Object
- Object
- ActiveRecord::Futures::FutureValue
- Defined in:
- lib/active_record/futures/future_value.rb
Instance Method Summary collapse
-
#initialize(future_execution) ⇒ FutureValue
constructor
A new instance of FutureValue.
- #inspect ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(future_execution) ⇒ FutureValue
Returns a new instance of FutureValue.
7 8 9 |
# File 'lib/active_record/futures/future_value.rb', line 7 def initialize(future_execution) @future_execution = future_execution end |
Instance Method Details
#inspect ⇒ Object
15 16 17 |
# File 'lib/active_record/futures/future_value.rb', line 15 def inspect value end |
#value ⇒ Object
11 12 13 |
# File 'lib/active_record/futures/future_value.rb', line 11 def value future_execution.execute end |