Class: Metacrunch::TestUtils::DummyDestination
- Inherits:
-
Object
- Object
- Metacrunch::TestUtils::DummyDestination
- Defined in:
- lib/metacrunch/test_utils/dummy_destination.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/metacrunch/test_utils/dummy_destination.rb', line 6 def data @data end |
Instance Method Details
#close ⇒ Object
13 14 15 |
# File 'lib/metacrunch/test_utils/dummy_destination.rb', line 13 def close @close_called = true end |
#write(row) ⇒ Object
8 9 10 11 |
# File 'lib/metacrunch/test_utils/dummy_destination.rb', line 8 def write(row) @write_called = true (@data ||= []) << row end |