Sha256: 75d0d50e98d6a197a181856a5da86a375b756566d2e1a1ca4c24559eef2812fb

Contents?: true

Size: 275 Bytes

Versions: 25

Compression:

Stored size: 275 Bytes

Contents

module Fission
  class Response
    attr_accessor :code, :output, :data

    def initialize(args={})
      @code = args.fetch :code, 1
      @output = args.fetch :output, ''
      @data = args.fetch :data, nil
    end

    def successful?
      @code == 0
    end

  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
veewee-0.5.0.alpha4 lib/fission.old/response.rb
veewee-0.5.0.alpha3 lib/fission.old/response.rb
veewee-0.5.0.alpha2 lib/fission.old/response.rb
veewee-0.5.0.alpha1 lib/fission.old/response.rb
veewee-0.4.5.1 lib/fission.old/response.rb
veewee-0.4.5 lib/fission.old/response.rb
veewee-0.4.5.pre1 lib/fission.old/response.rb
veewee-0.4.4 lib/fission.old/response.rb
veewee-0.4.3 lib/fission.old/response.rb
veewee-0.4.2 lib/fission.old/response.rb
veewee-0.4.1 lib/fission.old/response.rb
veewee-0.4.0 lib/fission.old/response.rb
veewee-0.3.12 lib/fission.old/response.rb
veewee-0.3.11 lib/fission.old/response.rb
veewee-0.3.10 lib/fission.old/response.rb
veewee-0.3.9 lib/fission.old/response.rb
veewee-0.3.0.alpha9 lib/fission/response.rb
veewee-0.3.0.alpha8 lib/fission/response.rb
veewee-0.3.0.alpha7 lib/fission/response.rb
veewee-0.3.0.alpha6 lib/fission/response.rb