Sha256: 784214a19f4cdb03b30fda18d0fde06f2fa0686a89900bbdb07dbb96cf1bf2a1

Contents?: true

Size: 779 Bytes

Versions: 6

Compression:

Stored size: 779 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.2.0
class SmartCore::Operation::Result
  # @return [Array<Any>]
  #
  # @api private
  # @since 0.2.0
  attr_reader :__result_attributes__

  # @return [Hash<Symbol,Any>]
  #
  # @api private
  # @since 0.2.0
  attr_reader :__result_options__

  # @param result_attributes [Array<Any>]
  # @param result_options [Hash<Symbol,Any>]
  # @return [void]
  #
  # @api public
  # @since 0.2.0
  def initialize(*result_attributes, **result_options)
    @__result_attributes__ = result_attributes
    @__result_options__ = result_options
  end

  # @return [Boolean]
  #
  # @api public
  # @since 0.2.0
  def success?
    false
  end

  # @return [Boolean]
  #
  # @api public
  # @since 0.2.0
  def failure?
    false
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
smart_core-0.5.2 lib/smart_core/operation/result.rb
smart_core-0.5.1 lib/smart_core/operation/result.rb
smart_core-0.5.0 lib/smart_core/operation/result.rb
smart_core-0.4.0 lib/smart_core/operation/result.rb
smart_core-0.3.0 lib/smart_core/operation/result.rb
smart_core-0.2.0 lib/smart_core/operation/result.rb