Class: Performance::Timing

Inherits:
Object
  • Object
show all
Defined in:
lib/performance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_endObject (readonly)

Returns the value of attribute connect_end.



16
17
18
# File 'lib/performance.rb', line 16

def connect_end
  @connect_end
end

#connect_startObject (readonly)

Returns the value of attribute connect_start.



16
17
18
# File 'lib/performance.rb', line 16

def connect_start
  @connect_start
end

#dom_completeObject (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_endObject (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_startObject (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_interactiveObject (readonly)

Returns the value of attribute dom_interactive.



16
17
18
# File 'lib/performance.rb', line 16

def dom_interactive
  @dom_interactive
end

#dom_loadingObject (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_endObject (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_startObject (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_startObject (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_endObject (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_startObject (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

Returns the value of attribute navigation_start.



16
17
18
# File 'lib/performance.rb', line 16

def navigation_start
  @navigation_start
end

#redirect_endObject (readonly)

Returns the value of attribute redirect_end.



16
17
18
# File 'lib/performance.rb', line 16

def redirect_end
  @redirect_end
end

#redirect_startObject (readonly)

Returns the value of attribute redirect_start.



16
17
18
# File 'lib/performance.rb', line 16

def redirect_start
  @redirect_start
end

#request_startObject (readonly)

Returns the value of attribute request_start.



16
17
18
# File 'lib/performance.rb', line 16

def request_start
  @request_start
end

#response_endObject (readonly)

Returns the value of attribute response_end.



16
17
18
# File 'lib/performance.rb', line 16

def response_end
  @response_end
end

#response_startObject (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_startObject (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_endObject (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_startObject (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