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-1.3.2 lib/acfs/resource/operational.rb
acfs-1.3.1 lib/acfs/resource/operational.rb
acfs-1.3.0 lib/acfs/resource/operational.rb
acfs-1.2.1 lib/acfs/resource/operational.rb
acfs-0.50.0 lib/acfs/resource/operational.rb
acfs-1.2.0 lib/acfs/resource/operational.rb
acfs-0.49.1 lib/acfs/resource/operational.rb
acfs-1.1.1 lib/acfs/resource/operational.rb
acfs-0.49.0 lib/acfs/resource/operational.rb
acfs-1.1.0 lib/acfs/resource/operational.rb
acfs-0.48.2 lib/acfs/resource/operational.rb
acfs-1.0.1 lib/acfs/resource/operational.rb
acfs-0.48.1 lib/acfs/resource/operational.rb
acfs-1.0.0 lib/acfs/resource/operational.rb
acfs-0.48.0 lib/acfs/resource/operational.rb
acfs-0.47.0 lib/acfs/resource/operational.rb
acfs-0.46.0 lib/acfs/resource/operational.rb
acfs-0.45.0 lib/acfs/resource/operational.rb
acfs-0.44.0 lib/acfs/resource/operational.rb
acfs-0.43.2 lib/acfs/resource/operational.rb