Sha256: 39e628822792daafce7df51e2abfe5123b81bd780f6b643034fc70cffcdc60db
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true # @api public # @since 0.1.0 module SmartCore::Operation::Interface::Result # @param result_attributes [Hash<Symbol,Any>] # @return [SmartCore::Operation::Result::Success] # # @api public # @since 0.1.0 def Success(**result_attributes) SmartCore::Operation::Result::Success.new(**result_attributes) end # @param result_attributs [Array<Any>] # @return [SmartCore::Operation::Result::Failure] # # @api public # @since 0.1.0 def Failure(*result_attributes) SmartCore::Operation::Result::Failure.new(*result_attributes) end # @param result_attributes [Array<Any>] # @return [SmartCore::Operation::Result::Fatal] # # @api public # @since 0.1.0 def Fatal(*result_attributes) raise(SmartCore::Operation::Result::Fatal.new(*result_attributes)) end # @param callback [Block] # @return [SmartCore::Operation::Result::Callback] # # @api public # @since 0.1.0 def Callback(&callback) SmartCore::Operation::Result::Callback.new(&callback) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smart_operation-0.1.0 | lib/smart_core/operation/interface/result.rb |