Class: JsonApiClient::Query::Create
- Defined in:
- lib/json_api_client/query/create.rb
Instance Attribute Summary
Attributes inherited from Base
#headers, #klass, #params, #path
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from JsonApiClient::Query::Base
Instance Method Details
#build_params(args) ⇒ Object
6 7 8 |
# File 'lib/json_api_client/query/create.rb', line 6 def build_params(args) @params = {klass.resource_name => args.except(klass.primary_key)} end |