Class: Turbot::Handlers::ValidationHandler

Inherits:
BaseHandler
  • Object
show all
Defined in:
lib/turbot/handlers/validation_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeValidationHandler

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

#countObject (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