Class: Turbot::Handlers::ValidationHandler
- Inherits:
-
BaseHandler
- Object
- TurbotRunner::BaseHandler
- BaseHandler
- Turbot::Handlers::ValidationHandler
- Defined in:
- lib/turbot/handlers/validation_handler.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
Instance Method Summary collapse
-
#handle_valid_record(record, data_type) ⇒ Object
Implements
TurbotRunner::BaseHandler#handle_valid_record
. -
#initialize ⇒ ValidationHandler
constructor
A new instance of ValidationHandler.
Constructor Details
#initialize ⇒ ValidationHandler
Returns a new instance of ValidationHandler.
6 7 8 |
# File 'lib/turbot/handlers/validation_handler.rb', line 6 def initialize @count = 0 end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
4 5 6 |
# File 'lib/turbot/handlers/validation_handler.rb', line 4 def count @count end |
Instance Method Details
#handle_valid_record(record, data_type) ⇒ Object
Implements TurbotRunner::BaseHandler#handle_valid_record
.
11 12 13 14 |
# File 'lib/turbot/handlers/validation_handler.rb', line 11 def handle_valid_record(record, data_type) @count += 1 STDOUT.write('.') end |