Sha256: 08dbf1c0fc5250f1a15dd294b54292c3d948c645e59dcbc49c624f3e9c416cb7

Contents?: true

Size: 302 Bytes

Versions: 6

Compression:

Stored size: 302 Bytes

Contents

module BackgrounDRb
  class Result
    def initialize results
      @results = resuls
    end

    def async_response?
      !(@results[:result] == true)
    end

    def sync_response?
      (@results[:result] == true)
    end

    def error?
      !(@results[:result_flag] == "ok")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
backgroundrb-rails3-1.1.6 lib/backgroundrb/bdrb_result.rb
backgroundrb-rails3-1.1.5 lib/backgroundrb/bdrb_result.rb
backgroundrb-rails3-1.1.3 lib/backgroundrb/bdrb_result.rb
backgroundrb-rails3-1.1.2 lib/backgroundrb/bdrb_result.rb
backgroundrb-rails3-1.1.1 lib/backgroundrb/bdrb_result.rb
backgroundrb-rails3-1.1 lib/backgroundrb/bdrb_result.rb