Class: HttpArchive::Page

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

Overview

Holds general data of the page and its loading process

Instance Attribute Summary collapse

Instance Attribute Details

#idString

Returns the id of the page

Returns:

  • (String)

    page id as string, e.g. “page_50735”


30
31
32
# File 'lib/http_archive/classes.rb', line 30

def id
  @id
end

#on_content_loadFixnum

Returns the amount of milliseconds sice the page load started and the content is loaded

Returns:

  • (Fixnum)

    milliseconds content is loaded, e.g. 4994


36
37
38
# File 'lib/http_archive/classes.rb', line 36

def on_content_load
  @on_content_load
end

#on_loadFixnum

Returns the amount of milliseconds sice the page load started and the page itself is loaded

Returns:

  • (Fixnum)

    milliseconds page is loaded, e.g. 6745


39
40
41
# File 'lib/http_archive/classes.rb', line 39

def on_load
  @on_load
end

#started_datetimeString

Returns the datetime as string when loading of the page started

Returns:

  • (String)

    datetime-string, e.g. “2013-05-28T22:16:19.883+02:00”


27
28
29
# File 'lib/http_archive/classes.rb', line 27

def started_datetime
  @started_datetime
end

#titleString

Returns the title of the page

Returns:

  • (String)

    page title as string, e.g. “Software is hard”


33
34
35
# File 'lib/http_archive/classes.rb', line 33

def title
  @title
end