lib/har/archive.rb in har-0.0.6 vs lib/har/archive.rb in har-0.0.7
- old
+ new
@@ -39,9 +39,13 @@
def initialize(input, uri = nil)
@data = input
@uri = uri
end
+ def view
+ Viewer.new([self]).show
+ end
+
def pages
@pages ||= raw_log.fetch('pages').map { |page|
Page.new page, entries_for(page['id'])
}
end