Class: Txnap::Gap
- Inherits:
-
Data
- Object
- Data
- Txnap::Gap
- Defined in:
- lib/txnap/report.rb
Instance Attribute Summary collapse
-
#after ⇒ Object
readonly
Returns the value of attribute after.
-
#before ⇒ Object
readonly
Returns the value of attribute before.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#locks ⇒ Object
readonly
Returns the value of attribute locks.
Instance Method Summary collapse
Instance Attribute Details
#after ⇒ Object (readonly)
Returns the value of attribute after
10 11 12 |
# File 'lib/txnap/report.rb', line 10 def after @after end |
#before ⇒ Object (readonly)
Returns the value of attribute before
10 11 12 |
# File 'lib/txnap/report.rb', line 10 def before @before end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration
10 11 12 |
# File 'lib/txnap/report.rb', line 10 def duration @duration end |
#locks ⇒ Object (readonly)
Returns the value of attribute locks
10 11 12 |
# File 'lib/txnap/report.rb', line 10 def locks @locks end |
Instance Method Details
#to_h ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/txnap/report.rb', line 11 def to_h { duration_ms: duration * 1000.0, after: after&.to_h, before: before&.to_h } end |