Class: JDBCHelper::Connection::Stat

Inherits:
Object
  • Object
show all
Defined in:
lib/jdbc-helper/connection.rb

Overview

Statistics

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(t, e, s, f) ⇒ Stat

Returns a new instance of Stat.



459
460
461
462
463
464
# File 'lib/jdbc-helper/connection.rb', line 459

def initialize(t, e, s, f)
  self.type          = t
  self.elapsed       = e
  self.success_count = s
  self.fail_count    = f
end

Instance Attribute Details

#elapsedObject

Returns the value of attribute elapsed.



457
458
459
# File 'lib/jdbc-helper/connection.rb', line 457

def elapsed
  @elapsed
end

#fail_countObject

Returns the value of attribute fail_count.



457
458
459
# File 'lib/jdbc-helper/connection.rb', line 457

def fail_count
  @fail_count
end

#success_countObject

Returns the value of attribute success_count.



457
458
459
# File 'lib/jdbc-helper/connection.rb', line 457

def success_count
  @success_count
end

#typeObject

Returns the value of attribute type.



457
458
459
# File 'lib/jdbc-helper/connection.rb', line 457

def type
  @type
end