lib/cookie/header.rb in majoun-0.0.1 vs lib/cookie/header.rb in majoun-0.0.2

- old
+ new

@@ -4,24 +4,18 @@ # Models a transient, new cookie on the server that can be serialized # into an HTTP 'Set-Cookie' header class Header - include Equalizer.new(:cookie, :attributes) + include Concord.new(:cookie, :attributes) include Adamantium::Flat - attr_reader :cookie - protected :cookie - - attr_reader :attributes - protected :attributes - def self.build(name, value, attributes) new(Cookie.new(name, value), attributes) end - def initialize(cookie, attributes = Attribute::Set::EMPTY) - @cookie, @attributes = cookie, attributes + def self.new(cookie, attributes = Attribute::Set::EMPTY) + super end def with_domain(domain) with_attribute(Attribute::Domain.new(domain)) end