Sha256: 92daccb5ee9d792dd21383071a7806c7214e04341d2ad2a6d4d1ae7c9bdcfe79

Contents?: true

Size: 857 Bytes

Versions: 5

Compression:

Stored size: 857 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResult
        module Constants
          ##
          # TODO: Consider to include `::ConvenientService::Configs::Minimal`
          #
          DEFAULT_SERVICE_CLASS = ::Class.new { include ::ConvenientService::Core }
          DEFAULT_SERVICE_INSTANCE = DEFAULT_SERVICE_CLASS.new

          SUCCESS_STATUS = :success
          FAILURE_STATUS = :failure
          ERROR_STATUS = :error

          DEFAULT_SUCCESS_DATA = {}
          DEFAULT_FAILURE_DATA = {}
          ERROR_DATA = {}

          SUCCESS_MESSAGE = ""
          DEFAULT_FAILURE_MESSAGE = ""
          DEFAULT_ERROR_MESSAGE = ""

          SUCCESS_CODE = :success
          FAILURE_CODE = :failure
          DEFAULT_ERROR_CODE = :default_error
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
convenient_service-0.3.1 lib/convenient_service/service/plugins/has_result/constants.rb
convenient_service-0.3.0 lib/convenient_service/service/plugins/has_result/constants.rb
convenient_service-0.2.1 lib/convenient_service/service/plugins/has_result/constants.rb
convenient_service-0.2.0 lib/convenient_service/service/plugins/has_result/constants.rb
convenient_service-0.1.0 lib/convenient_service/service/plugins/has_result/constants.rb