Class: RecordDiff::ResultSet
- Inherits:
-
Array
- Object
- Array
- RecordDiff::ResultSet
- Defined in:
- lib/record_diff/result_set.rb
Overview
Convenience wrapper for result array.
Instance Method Summary collapse
- #added ⇒ Object
- #all ⇒ Object
- #changed ⇒ Object
- #dropped ⇒ Object
- #errored ⇒ Object
-
#initialize(results) ⇒ ResultSet
constructor
A new instance of ResultSet.
- #unchanged ⇒ Object
Constructor Details
#initialize(results) ⇒ ResultSet
Returns a new instance of ResultSet.
6 7 8 |
# File 'lib/record_diff/result_set.rb', line 6 def initialize(results) super results end |
Instance Method Details
#added ⇒ Object
18 19 20 |
# File 'lib/record_diff/result_set.rb', line 18 def added select(&:added?) end |
#all ⇒ Object
30 31 32 |
# File 'lib/record_diff/result_set.rb', line 30 def all self end |
#changed ⇒ Object
14 15 16 |
# File 'lib/record_diff/result_set.rb', line 14 def changed select(&:changed?) end |
#dropped ⇒ Object
22 23 24 |
# File 'lib/record_diff/result_set.rb', line 22 def dropped select(&:dropped?) end |
#errored ⇒ Object
26 27 28 |
# File 'lib/record_diff/result_set.rb', line 26 def errored select(&:error?) end |
#unchanged ⇒ Object
10 11 12 |
# File 'lib/record_diff/result_set.rb', line 10 def unchanged select(&:unchanged?) end |