Sha256: 886370a8af1033390b3cf425b470da6d4a91c2883cf8a2e213f8d6dfc2a1b5f4

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
acfs-1.0.0.dev.1.b305 lib/acfs/resource/operational.rb
acfs-1.0.0.dev.1.b298 lib/acfs/resource/operational.rb
acfs-1.0.0.dev.1.b297 lib/acfs/resource/operational.rb