Sha256: 5cdf38266bf9f33835a3217eafe0a7f3f41006ea9ce2ecd5d9228015ca8c8f3f

Contents?: true

Size: 226 Bytes

Versions: 17

Compression:

Stored size: 226 Bytes

Contents

module JsonApiClient
  module Query
    class Create < Base
      self.request_method = :post

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

    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
json_api_client-0.7.1 lib/json_api_client/query/create.rb
json_api_client-0.7.0 lib/json_api_client/query/create.rb
json_api_client-0.6.0 lib/json_api_client/query/create.rb
json_api_client-0.5.1 lib/json_api_client/query/create.rb
json_api_client-0.5.0 lib/json_api_client/query/create.rb
json_api_client-0.4.0 lib/json_api_client/query/create.rb
json_api_client-0.3.1 lib/json_api_client/query/create.rb
json_api_client-0.3.0 lib/json_api_client/query/create.rb
json_api_client-0.2.4 lib/json_api_client/query/create.rb
json_api_client-0.2.3 lib/json_api_client/query/create.rb
json_api_client-0.2.2 lib/json_api_client/query/create.rb
json_api_client-0.2.1 lib/json_api_client/query/create.rb
json_api_client-0.2.0 lib/json_api_client/query/create.rb
json_api_client-0.1.3 lib/json_api_client/query/create.rb
json_api_client-0.1.2 lib/json_api_client/query/create.rb
json_api_client-0.1.1 lib/json_api_client/query/create.rb
json_api_client-0.0.3 lib/json_api_client/query/create.rb