Class: Aranha::Parsers::Firefox::UriFromHar

Inherits:
Object
  • Object
show all
Defined in:
lib/aranha/parsers/firefox/uri_from_har.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_file(path) ⇒ Object



10
11
12
# File 'lib/aranha/parsers/firefox/uri_from_har.rb', line 10

def from_file(path)
  new(::JSON.parse(path.to_pathname.read))
end

Instance Method Details

#request_dataObject



21
# File 'lib/aranha/parsers/firefox/uri_from_har.rb', line 21

def request_data; end

#resultObject



17
18
19
# File 'lib/aranha/parsers/firefox/uri_from_har.rb', line 17

def result
  data.fetch('log').fetch('entries').map { |e| e.fetch('request').fetch('url') }
end