Sha256: f3b1ad1528e724427e4a440ccf3a502be98a72044f7a9a184f9b6ddd699e6931

Contents?: true

Size: 748 Bytes

Versions: 7

Compression:

Stored size: 748 Bytes

Contents

module OData
  # Internally used helper class for storing operations called against the service.  This class shouldn't be used directly.
  class Operation
    attr_accessor :kind, :klass_name, :klass, :child_klass

    # Creates a new instance of the Operation class
    #
    # @param [String] kind the operation type (Standard: Add, Update, or Delete | Links: AddLink)
    # @param [String] klass_name the name/type of the class to operate against
    # @param [Object] klass the actual class
    # @param [Object, nil] child_klass used for link operations only
    def initialize(kind, klass_name, klass, child_klass = nil)
      @kind = kind
      @klass_name = klass_name
      @klass = klass
      @child_klass = child_klass
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby_odata-0.2.0.beta1 lib/ruby_odata/operation.rb
ruby_odata-0.1.6 lib/ruby_odata/operation.rb
ruby_odata-0.1.5 lib/ruby_odata/operation.rb
ruby_odata-0.1.4 lib/ruby_odata/operation.rb
ruby_odata-0.1.3 lib/ruby_odata/operation.rb
ruby_odata-0.1.2 lib/ruby_odata/operation.rb
ruby_odata-0.1.1 lib/ruby_odata/operation.rb