Class: Performance::Timing
- Inherits:
-
Object
- Object
- Performance::Timing
- Defined in:
- lib/performance.rb
Instance Attribute Summary collapse
-
#connect_end ⇒ Object
readonly
Returns the value of attribute connect_end.
-
#connect_start ⇒ Object
readonly
Returns the value of attribute connect_start.
-
#dom_complete ⇒ Object
readonly
Returns the value of attribute dom_complete.
-
#dom_content_loaded_event_end ⇒ Object
readonly
Returns the value of attribute dom_content_loaded_event_end.
-
#dom_content_loaded_event_start ⇒ Object
readonly
Returns the value of attribute dom_content_loaded_event_start.
-
#dom_interactive ⇒ Object
readonly
Returns the value of attribute dom_interactive.
-
#dom_loading ⇒ Object
readonly
Returns the value of attribute dom_loading.
-
#domain_lookup_end ⇒ Object
readonly
Returns the value of attribute domain_lookup_end.
-
#domain_lookup_start ⇒ Object
readonly
Returns the value of attribute domain_lookup_start.
-
#fetch_start ⇒ Object
readonly
Returns the value of attribute fetch_start.
-
#load_event_end ⇒ Object
readonly
Returns the value of attribute load_event_end.
-
#load_event_start ⇒ Object
readonly
Returns the value of attribute load_event_start.
-
#navigation_start ⇒ Object
readonly
Returns the value of attribute navigation_start.
-
#redirect_end ⇒ Object
readonly
Returns the value of attribute redirect_end.
-
#redirect_start ⇒ Object
readonly
Returns the value of attribute redirect_start.
-
#request_start ⇒ Object
readonly
Returns the value of attribute request_start.
-
#response_end ⇒ Object
readonly
Returns the value of attribute response_end.
-
#response_start ⇒ Object
readonly
Returns the value of attribute response_start.
-
#secure_connection_start ⇒ Object
readonly
Returns the value of attribute secure_connection_start.
-
#unload_event_end ⇒ Object
readonly
Returns the value of attribute unload_event_end.
-
#unload_event_start ⇒ Object
readonly
Returns the value of attribute unload_event_start.
Instance Method Summary collapse
-
#initialize(args) ⇒ Timing
constructor
A new instance of Timing.
Constructor Details
#initialize(args) ⇒ Timing
Returns a new instance of Timing.
17 18 19 20 21 |
# File 'lib/performance.rb', line 17 def initialize args args.each do |k,v| instance_variable_set("@#{k}", v) if respond_to?(k.to_sym) unless v.nil? end end |
Instance Attribute Details
#connect_end ⇒ Object (readonly)
Returns the value of attribute connect_end.
16 17 18 |
# File 'lib/performance.rb', line 16 def connect_end @connect_end end |
#connect_start ⇒ Object (readonly)
Returns the value of attribute connect_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def connect_start @connect_start end |
#dom_complete ⇒ Object (readonly)
Returns the value of attribute dom_complete.
16 17 18 |
# File 'lib/performance.rb', line 16 def dom_complete @dom_complete end |
#dom_content_loaded_event_end ⇒ Object (readonly)
Returns the value of attribute dom_content_loaded_event_end.
16 17 18 |
# File 'lib/performance.rb', line 16 def dom_content_loaded_event_end @dom_content_loaded_event_end end |
#dom_content_loaded_event_start ⇒ Object (readonly)
Returns the value of attribute dom_content_loaded_event_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def dom_content_loaded_event_start @dom_content_loaded_event_start end |
#dom_interactive ⇒ Object (readonly)
Returns the value of attribute dom_interactive.
16 17 18 |
# File 'lib/performance.rb', line 16 def dom_interactive @dom_interactive end |
#dom_loading ⇒ Object (readonly)
Returns the value of attribute dom_loading.
16 17 18 |
# File 'lib/performance.rb', line 16 def dom_loading @dom_loading end |
#domain_lookup_end ⇒ Object (readonly)
Returns the value of attribute domain_lookup_end.
16 17 18 |
# File 'lib/performance.rb', line 16 def domain_lookup_end @domain_lookup_end end |
#domain_lookup_start ⇒ Object (readonly)
Returns the value of attribute domain_lookup_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def domain_lookup_start @domain_lookup_start end |
#fetch_start ⇒ Object (readonly)
Returns the value of attribute fetch_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def fetch_start @fetch_start end |
#load_event_end ⇒ Object (readonly)
Returns the value of attribute load_event_end.
16 17 18 |
# File 'lib/performance.rb', line 16 def load_event_end @load_event_end end |
#load_event_start ⇒ Object (readonly)
Returns the value of attribute load_event_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def load_event_start @load_event_start end |
#navigation_start ⇒ Object (readonly)
Returns the value of attribute navigation_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def @navigation_start end |
#redirect_end ⇒ Object (readonly)
Returns the value of attribute redirect_end.
16 17 18 |
# File 'lib/performance.rb', line 16 def redirect_end @redirect_end end |
#redirect_start ⇒ Object (readonly)
Returns the value of attribute redirect_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def redirect_start @redirect_start end |
#request_start ⇒ Object (readonly)
Returns the value of attribute request_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def request_start @request_start end |
#response_end ⇒ Object (readonly)
Returns the value of attribute response_end.
16 17 18 |
# File 'lib/performance.rb', line 16 def response_end @response_end end |
#response_start ⇒ Object (readonly)
Returns the value of attribute response_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def response_start @response_start end |
#secure_connection_start ⇒ Object (readonly)
Returns the value of attribute secure_connection_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def secure_connection_start @secure_connection_start end |
#unload_event_end ⇒ Object (readonly)
Returns the value of attribute unload_event_end.
16 17 18 |
# File 'lib/performance.rb', line 16 def unload_event_end @unload_event_end end |
#unload_event_start ⇒ Object (readonly)
Returns the value of attribute unload_event_start.
16 17 18 |
# File 'lib/performance.rb', line 16 def unload_event_start @unload_event_start end |