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.



431
432
433
434
435
436
# File 'lib/jdbc-helper/connection.rb', line 431

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.



429
430
431
# File 'lib/jdbc-helper/connection.rb', line 429

def elapsed
  @elapsed
end

#fail_countObject

Returns the value of attribute fail_count.



429
430
431
# File 'lib/jdbc-helper/connection.rb', line 429

def fail_count
  @fail_count
end

#success_countObject

Returns the value of attribute success_count.



429
430
431
# File 'lib/jdbc-helper/connection.rb', line 429

def success_count
  @success_count
end

#typeObject

Returns the value of attribute type.



429
430
431
# File 'lib/jdbc-helper/connection.rb', line 429

def type
  @type
end