Class: JDBCHelper::Connection::Stat
- Inherits:
-
Object
- Object
- JDBCHelper::Connection::Stat
- Defined in:
- lib/jdbc-helper/connection.rb
Overview
Statistics
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
Returns the value of attribute elapsed.
-
#fail_count ⇒ Object
Returns the value of attribute fail_count.
-
#success_count ⇒ Object
Returns the value of attribute success_count.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(t, e, s, f) ⇒ Stat
constructor
A new instance of Stat.
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
#elapsed ⇒ Object
Returns the value of attribute elapsed.
457 458 459 |
# File 'lib/jdbc-helper/connection.rb', line 457 def elapsed @elapsed end |
#fail_count ⇒ Object
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_count ⇒ Object
Returns the value of attribute success_count.
457 458 459 |
# File 'lib/jdbc-helper/connection.rb', line 457 def success_count @success_count end |
#type ⇒ Object
Returns the value of attribute type.
457 458 459 |
# File 'lib/jdbc-helper/connection.rb', line 457 def type @type end |