Sha256: 46fb0d9dee9fe9ac5e53a293b7fac16df629ef2e234a79510b6afd52ac1c2419
Contents?: true
Size: 477 Bytes
Versions: 4
Compression:
Stored size: 477 Bytes
Contents
module Yarn class Response attr_accessor :content def initialize @content = [nil, {}, []] end def status=(status) @content[0] = status end def status @content[0] end def headers=(headers) @content[1] = headers end def headers @content[1] end def body=(body) @content[2] = body end def body @content[2] end def to_s @content end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yarn-0.1.0 | lib/yarn/response.rb |
yarn-0.0.9 | lib/yarn/response.rb |
yarn-0.0.2 | lib/yarn/response.rb |
yarn-0.0.1 | lib/yarn/response.rb |