Class: ActiveRecord::FutureResult::Complete
- Defined in:
- activerecord/lib/active_record/future_result.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #canceled? ⇒ Boolean
-
#initialize(result) ⇒ Complete
constructor
A new instance of Complete.
- #pending? ⇒ Boolean
- #then(&block) ⇒ Object
Constructor Details
#initialize(result) ⇒ Complete
Returns a new instance of Complete.
9 10 11 |
# File 'activerecord/lib/active_record/future_result.rb', line 9 def initialize(result) @result = result end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result
6 7 8 |
# File 'activerecord/lib/active_record/future_result.rb', line 6 def result @result end |
Instance Method Details
#canceled? ⇒ Boolean
17 18 19 |
# File 'activerecord/lib/active_record/future_result.rb', line 17 def canceled? false end |
#pending? ⇒ Boolean
13 14 15 |
# File 'activerecord/lib/active_record/future_result.rb', line 13 def pending? false end |