Sha256: f952607e35dc14045e960ab81626fba4b1986a35bf31347e3fc95fefcd2348b6
Contents?: true
Size: 1.41 KB
Versions: 4
Compression:
Stored size: 1.41 KB
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasJSendResultStatusCheckShortSyntax module Concern include Support::Concern class_methods do ## # @return [Boolean] # def success?(...) result(...).success? end ## # @return [Boolean] # def error?(...) result(...).error? end ## # @return [Boolean] # def failure?(...) result(...).failure? end ## # @return [Boolean] # def not_success?(...) result(...).not_success? end ## # @return [Boolean] # def not_error?(...) result(...).not_error? end ## # @return [Boolean] # def not_failure?(...) result(...).not_failure? end ## # @return [Boolean] # def ok?(...) result(...).success? end ## # @return [Boolean] # def not_ok?(...) result(...).not_success? end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems