class FirefoxJson::Session::Entry
The base of the session - a specific viewed site
Attributes
referrer[R]
title[R]
url[R]
Public Class Methods
new(data, _closed)
click to toggle source
# File lib/firefox-json/session.rb, line 153 def initialize data, _closed setup data @url = data['url'] @title = data['title'] @referrer = data['referrer'] @id = data['id'] @docshell_id = data['docshellID'] @doc_identifier = data['docIdentifier'] end
Public Instance Methods
domain()
click to toggle source
# File lib/firefox-json/session.rb, line 163 def domain url.split('/')[2] end
hash()
click to toggle source
# File lib/firefox-json/session.rb, line 167 def hash url.hash end
to_s()
click to toggle source
# File lib/firefox-json/session.rb, line 171 def to_s "#<FirefoxJson::Entry #{url}>" end