Sha256: ad2d93e01264a989479b04a45e1411575ae71d7ff972b08b4d9aa71156b1ad70

Contents?: true

Size: 568 Bytes

Versions: 1

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

class Acfs::Resource
  # @api private
  #
  # Provide methods for creating and processing CRUD operations and
  # handling responses. That includes error handling as well as
  # handling stubbed resources.
  #
  # Should only be used internal.
  #
  module Operational
    extend ActiveSupport::Concern

    def operation(...)
      self.class.operation(...)
    end

    module ClassMethods
      # Invoke CRUD operation.
      def operation(...)
        Acfs.runner.process ::Acfs::Operation.new(self, ...)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acfs-2.0.0 lib/acfs/resource/operational.rb