Sha256: d57712801f1298b94bb5d1e72e4e0ebc868c9e5e1ef65904883391881a7a6eed
Contents?: true
Size: 233 Bytes
Versions: 5
Compression:
Stored size: 233 Bytes
Contents
module Roark class Response attr_accessor :code, :message def initialize(args={}) @code = args.fetch :code, 1 @message = args.fetch :message, '' end def success? @code == 0 end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
roark-0.2.2 | lib/roark/response.rb |
roark-0.2.1 | lib/roark/response.rb |
roark-0.2.0 | lib/roark/response.rb |
roark-0.1.0 | lib/roark/response.rb |
roark-0.0.1 | lib/roark/response.rb |