Sha256: 910932731173170d7359ce82873cd1210686b231c1961be25e987cba58a5aaf5
Contents?: true
Size: 386 Bytes
Versions: 4
Compression:
Stored size: 386 Bytes
Contents
require 'speed_gun/browser' class SpeedGun::Browser::Navigation < Hash NAVIGATION_TYPES = [ 'Navigate', 'Reload', 'Back/Forward' ] def initialize(hash) hash.each_pair do |key, val| self[key.to_s.to_sym] = val end end def type NAVIGATION_TYPES[self[:type].to_i] || 'Unknown' end def redirect_count self[:redirect_count].to_i end end
Version data entries
4 entries across 4 versions & 1 rubygems