Sha256: 9ba13ab4c777ecf748d4dbce38639324fe5f5541d4c4813bb98d2edf589412ee

Contents?: true

Size: 205 Bytes

Versions: 44

Compression:

Stored size: 205 Bytes

Contents

module RailsDb
  class Result

    attr_reader :error

    def initialize(error)
      @error = error
    end

    def self.ok
      Result.new(nil)
    end

    def ok?
      error.nil?
    end

  end
end

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
rails_db-2.4.4 lib/rails_db/result.rb
rails_db-2.4.3 lib/rails_db/result.rb
rails_db-2.4.2 lib/rails_db/result.rb
rails_db-2.4.1 lib/rails_db/result.rb
rails_db-2.4.0 lib/rails_db/result.rb
rails_db-2.3.1 lib/rails_db/result.rb
rails_db-2.3.0 lib/rails_db/result.rb
rails_db-2.2.1 lib/rails_db/result.rb
rails_db-2.2.0 lib/rails_db/result.rb
rails_db-2.1.1 lib/rails_db/result.rb
rails_db-2.1.0 lib/rails_db/result.rb
rails_db-2.0.6 lib/rails_db/result.rb
rails_db-2.0.5 lib/rails_db/result.rb
rails_db-2.0.4 lib/rails_db/result.rb
xplore-0.0.1.alpha lib/rails_db/result.rb
rails_db-2.0.3 lib/rails_db/result.rb
rails_db-2.0.2 lib/rails_db/result.rb
rails_db-2.0.1 lib/rails_db/result.rb
rails_db-2.0.0 lib/rails_db/result.rb
rails_db-1.6.0 lib/rails_db/result.rb