Sha256: 0bc91f0e7905a7e72beefdb25e240cdc89b7ce7c544f3d73296ab2eb397c6062

Contents?: true

Size: 252 Bytes

Versions: 13

Compression:

Stored size: 252 Bytes

Contents

module JsonApiClient
  module Query
    class Update < Base
      self.request_method = :put

      def build_params(args)
        @params = {klass.primary_key => args.delete(klass.primary_key), klass.resource_name => args}
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
json_api_client-0.5.0 lib/json_api_client/query/update.rb
json_api_client-0.4.0 lib/json_api_client/query/update.rb
json_api_client-0.3.1 lib/json_api_client/query/update.rb
json_api_client-0.3.0 lib/json_api_client/query/update.rb
json_api_client-0.2.4 lib/json_api_client/query/update.rb
json_api_client-0.2.3 lib/json_api_client/query/update.rb
json_api_client-0.2.2 lib/json_api_client/query/update.rb
json_api_client-0.2.1 lib/json_api_client/query/update.rb
json_api_client-0.2.0 lib/json_api_client/query/update.rb
json_api_client-0.1.3 lib/json_api_client/query/update.rb
json_api_client-0.1.2 lib/json_api_client/query/update.rb
json_api_client-0.1.1 lib/json_api_client/query/update.rb
json_api_client-0.0.3 lib/json_api_client/query/update.rb