Sha256: f29ba9cd4c1dcad7527787d6e4ce1dc168a2db3204a5e259960de75aba5c7ac0

Contents?: true

Size: 786 Bytes

Versions: 4

Compression:

Stored size: 786 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResult
        module Constants
          DEFAULT_SERVICE_CLASS = ::Class.new { include ::ConvenientService::Service::Plugins::HasResult::Concern }
          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

4 entries across 4 versions & 1 rubygems

Version Path
convenient_service-0.7.0 lib/convenient_service/service/plugins/has_result/constants.rb
convenient_service-0.6.0 lib/convenient_service/service/plugins/has_result/constants.rb
convenient_service-0.5.0 lib/convenient_service/service/plugins/has_result/constants.rb
convenient_service-0.4.0 lib/convenient_service/service/plugins/has_result/constants.rb