Sha256: 90212034cf077b3817dabeae2ded942260603f07d7c98724a95ac8cdeb9722fa

Contents?: true

Size: 501 Bytes

Versions: 2

Compression:

Stored size: 501 Bytes

Contents

module Acfs::Model

  # 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
      def operation(action, opts = {}, &block)
        Acfs.runner.process ::Acfs::Operation.new self, action, opts, &block
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
acfs-0.16.0 lib/acfs/model/operational.rb
acfs-0.15.0 lib/acfs/model/operational.rb