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.
11 12 13 |
# File 'activerecord/lib/active_record/future_result.rb', line 11 def initialize(result) @result = result end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
8 9 10 |
# File 'activerecord/lib/active_record/future_result.rb', line 8 def result @result end |
Instance Method Details
#canceled? ⇒ Boolean
19 20 21 |
# File 'activerecord/lib/active_record/future_result.rb', line 19 def canceled? false end |
#pending? ⇒ Boolean
15 16 17 |
# File 'activerecord/lib/active_record/future_result.rb', line 15 def pending? false end |