Class: HttpArchive::Browser

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

Overview

Container for browser-related information.

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

Returns the name of the browser the page was loaded

Returns:

  • (String)

    String with browser name, e.g. “Firefox”



17
18
19
# File 'lib/http_archive/classes.rb', line 17

def name
  @name
end

#versionString

Returns the version of the browser the page was loaded

Returns:

  • (String)

    String with browser version, e.g. “21.0”



20
21
22
# File 'lib/http_archive/classes.rb', line 20

def version
  @version
end