Sha256: 6d487f3f870519b8669d6da713d12d9fce1bff14b7d8230560caf3e9e02e523a

Contents?: true

Size: 227 Bytes

Versions: 15

Compression:

Stored size: 227 Bytes

Contents

module Berkshelf
  # @author Jamie Winsor <jamie@vialstudios.com>
  class TXResult < Struct.new(:status, :message, :source)
    def failed?
      status == :error
    end

    def success?
      status == :ok
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
berkshelf-0.4.0.rc4 lib/berkshelf/tx_result.rb
berkshelf-0.4.0.rc3 lib/berkshelf/tx_result.rb
berkshelf-0.4.0.rc2 lib/berkshelf/tx_result.rb
berkshelf-0.4.0.rc1 lib/berkshelf/tx_result.rb
berkshelf-0.3.7 lib/berkshelf/tx_result.rb
berkshelf-0.3.3 lib/berkshelf/tx_result.rb
berkshelf-0.3.2 lib/berkshelf/tx_result.rb
berkshelf-0.3.1 lib/berkshelf/tx_result.rb
berkshelf-0.3.0 lib/berkshelf/tx_result.rb
berkshelf-0.2.0 lib/berkshelf/tx_result.rb
berkshelf-0.1.5 lib/berkshelf/tx_result.rb
berkshelf-0.1.4 lib/berkshelf/tx_result.rb
berkshelf-0.1.3 lib/berkshelf/tx_result.rb
berkshelf-0.1.2 lib/berkshelf/tx_result.rb
berkshelf-0.1.1 lib/berkshelf/tx_result.rb