Sha256: 915b1d109ae8d6e3414a429f2fa107aa2ed23f2f91c2db980452111248d8e63c

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

require 'synchronised_migration'

class SynchronisedMigration::Result
  attr_accessor :error

  def initialize(error = nil)
    @error = error
  end

  def success?
    error.nil?
  end

  def self.ok
    self.new
  end

  def self.fail(error)
    self.new error
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
synchronised_migration-2.2.0 lib/synchronised_migration/result.rb
synchronised_migration-2.1.2 lib/synchronised_migration/result.rb
synchronised_migration-2.1.1 lib/synchronised_migration/result.rb
synchronised_migration-2.1.0 lib/synchronised_migration/result.rb