Sha256: 295e60ef044470e034794f07f94b8e56bb91476a4ac2005e9264d4555a83f7b7

Contents?: true

Size: 342 Bytes

Versions: 16

Compression:

Stored size: 342 Bytes

Contents

module HAR
  module Serializable
    def inspect
      '#<%s:0x%s>' % [self.class.name, self.hash.to_s(16)]
    end

    def ==(other)
      other.kind_of?(self.class) && as_json == other.as_json
    end

    alias_method :eql?, :==

    def as_json
      @data
    end

    def to_json(*args)
      as_json.to_json(*args)
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
har-0.1.5 lib/har/serializable.rb
har-0.1.4 lib/har/serializable.rb
har-0.1.3 lib/har/serializable.rb
har-0.1.2 lib/har/serializable.rb
har-0.1.1 lib/har/serializable.rb
har-0.1.0 lib/har/serializable.rb
har-0.0.9 lib/har/serializable.rb
har-0.0.8 lib/har/serializable.rb
har-0.0.7 lib/har/serializable.rb
har-0.0.6 lib/har/serializable.rb
har-0.0.5 lib/har/serializable.rb
har-0.0.4 lib/har/serializable.rb
har-0.0.3 lib/har/serializable.rb
har-0.0.2 lib/har/serializable.rb
har-0.0.1 lib/har/serializable.rb
har-0.0.1.dev lib/har/serializable.rb