Class: Watir::PerformanceHelper::Performance
- Defined in:
- lib/watir-webdriver/extensions/performance.rb
Instance Attribute Summary collapse
-
#memory ⇒ Object
readonly
Returns the value of attribute memory.
-
#navigation ⇒ Object
readonly
Returns the value of attribute navigation.
-
#timing ⇒ Object
readonly
Returns the value of attribute timing.
Instance Method Summary collapse
-
#initialize(data) ⇒ Performance
constructor
A new instance of Performance.
Constructor Details
#initialize(data) ⇒ Performance
Returns a new instance of Performance.
24 25 26 27 28 |
# File 'lib/watir-webdriver/extensions/performance.rb', line 24 def initialize(data) @timing = rubify data['timing'] || {} @navigation = rubify data['navigation'] || {} @memory = rubify data['memory'] || {} end |
Instance Attribute Details
#memory ⇒ Object (readonly)
Returns the value of attribute memory.
22 23 24 |
# File 'lib/watir-webdriver/extensions/performance.rb', line 22 def memory @memory end |
#navigation ⇒ Object (readonly)
Returns the value of attribute navigation.
22 23 24 |
# File 'lib/watir-webdriver/extensions/performance.rb', line 22 def @navigation end |
#timing ⇒ Object (readonly)
Returns the value of attribute timing.
22 23 24 |
# File 'lib/watir-webdriver/extensions/performance.rb', line 22 def timing @timing end |