Class: RailsRequestStats::Stats::RuntimeStats
- Inherits:
-
Object
- Object
- RailsRequestStats::Stats::RuntimeStats
- Defined in:
- lib/rails_request_stats/stats/runtime_stats.rb
Instance Attribute Summary collapse
-
#db_runtime_collection ⇒ Object
readonly
Returns the value of attribute db_runtime_collection.
-
#view_runtime_collection ⇒ Object
readonly
Returns the value of attribute view_runtime_collection.
Instance Method Summary collapse
- #add_stats(view_runtime, db_runtime) ⇒ Object
-
#initialize ⇒ RuntimeStats
constructor
A new instance of RuntimeStats.
Constructor Details
#initialize ⇒ RuntimeStats
Returns a new instance of RuntimeStats.
7 8 9 10 |
# File 'lib/rails_request_stats/stats/runtime_stats.rb', line 7 def initialize @view_runtime_collection = [] @db_runtime_collection = [] end |
Instance Attribute Details
#db_runtime_collection ⇒ Object (readonly)
Returns the value of attribute db_runtime_collection.
4 5 6 |
# File 'lib/rails_request_stats/stats/runtime_stats.rb', line 4 def db_runtime_collection @db_runtime_collection end |
#view_runtime_collection ⇒ Object (readonly)
Returns the value of attribute view_runtime_collection.
4 5 6 |
# File 'lib/rails_request_stats/stats/runtime_stats.rb', line 4 def view_runtime_collection @view_runtime_collection end |
Instance Method Details
#add_stats(view_runtime, db_runtime) ⇒ Object
12 13 14 15 |
# File 'lib/rails_request_stats/stats/runtime_stats.rb', line 12 def add_stats(view_runtime, db_runtime) @view_runtime_collection << view_runtime @db_runtime_collection << db_runtime end |