Sha256: ff273924304f5df79197b328825f72a7297bdc0db70736c69e1cb2bee7c3d93e

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 Bytes

Contents

# encoding: utf-8

module Substation
  class Response

    # Namespace for modules that help with processor result compatibility
    module API

      # Indicate successful processing
      module Success

        # Test wether processing was successful
        #
        # @return [true]
        #
        # @api private
        def success?
          true
        end
      end

      # Indicate errorneous processing
      module Failure

        # Test wether processing was successful
        #
        # @return [false]
        #
        # @api private
        def success?
          false
        end
      end

    end # module API
  end # class Response
end # module Substation

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
substation-0.0.11 lib/substation/response/api.rb
substation-0.0.10 lib/substation/response/api.rb