lib/speedos/performance.rb in speedos-0.0.13 vs lib/speedos/performance.rb in speedos-0.0.14
- old
+ new
@@ -17,10 +17,12 @@
finialise_record(JSON.load(page.get_har.to_json)['log'], success)
page.server_proxy.close
page.server.stop
end
- def finialise_record(log, success)
+ private
+
+ def self.finialise_record(log, success)
record = Record.create(log: log, success: success)
record.refresh_information if success
end
end
end