Sha256: d854613ce4503d657bb2deed0da1c86a538c98250e861790606531b754ef69e0

Contents?: true

Size: 276 Bytes

Versions: 12

Compression:

Stored size: 276 Bytes

Contents

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

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

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
json_api_client-0.9.6 lib/json_api_client/query/update.rb
json_api_client-0.9.5 lib/json_api_client/query/update.rb
json_api_client-0.9.4 lib/json_api_client/query/update.rb
json_api_client-0.9.3 lib/json_api_client/query/update.rb
json_api_client-0.9.2 lib/json_api_client/query/update.rb
json_api_client-0.9.0 lib/json_api_client/query/update.rb
json_api_client-0.8.1 lib/json_api_client/query/update.rb
json_api_client-0.8.0 lib/json_api_client/query/update.rb
json_api_client-0.7.1 lib/json_api_client/query/update.rb
json_api_client-0.7.0 lib/json_api_client/query/update.rb
json_api_client-0.6.0 lib/json_api_client/query/update.rb
json_api_client-0.5.1 lib/json_api_client/query/update.rb