Sha256: 41034ee3b033acaaa7e13d8bd6faf555b3c802f3f02a1c3e357c274d6b7955d5
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
require 'sitehub/string_sanitiser' class SiteHub class Cookie class Attribute include StringSanitiser attr_accessor :name, :value def initialize(name, value) @name = sanitise(name).to_s.to_sym @value = sanitise(value || EMPTY_STRING) end def to_s "#{name}=#{value}" end def ==(other) other.is_a?(Attribute) && name == other.name && value == other.value end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.3 | lib/sitehub/cookie/attribute.rb |