Class: Watir::PerformanceHelper::Performance

Inherits:
Object
  • Object
show all
Defined in:
lib/watir-webdriver/extensions/performance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#memoryObject (readonly)

Returns the value of attribute memory.



22
23
24
# File 'lib/watir-webdriver/extensions/performance.rb', line 22

def memory
  @memory
end

Returns the value of attribute navigation.



22
23
24
# File 'lib/watir-webdriver/extensions/performance.rb', line 22

def navigation
  @navigation
end

#timingObject (readonly)

Returns the value of attribute timing.



22
23
24
# File 'lib/watir-webdriver/extensions/performance.rb', line 22

def timing
  @timing
end