Sha256: ee06a5a15390cbfbdb927bbe6cd6de95750666be018698e465544fe87c4181ea

Contents?: true

Size: 585 Bytes

Versions: 4

Compression:

Stored size: 585 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
    delegate :operation, to: :'self.class'

    module ClassMethods
      # Invoke CRUD operation.
      def operation(action, opts = {}, &block)
        Acfs.runner.process ::Acfs::Operation.new self, action, opts, &block
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
acfs-1.5.1 lib/acfs/resource/operational.rb
acfs-1.5.0 lib/acfs/resource/operational.rb
acfs-1.4.0 lib/acfs/resource/operational.rb
acfs-1.3.4 lib/acfs/resource/operational.rb