Sha256: b168b1dfbb4716f9b3e290efc42dab6b3004b00627a189719691b8aaa170ab8c

Contents?: true

Size: 560 Bytes

Versions: 22

Compression:

Stored size: 560 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

22 entries across 22 versions & 1 rubygems

Version Path
acfs-0.43.1 lib/acfs/resource/operational.rb
acfs-0.43.0 lib/acfs/resource/operational.rb