lib/chartmogul/v1/customers.rb in chartmogul_client-0.0.4 vs lib/chartmogul/v1/customers.rb in chartmogul_client-0.0.5

- old
+ new

@@ -27,12 +27,11 @@ # ] # # Returns the instance of Chartmogul::V1::Request. def create(customer_id, attributes = []) Chartmogul::V1::Request.new("#{BASE_URI}/#{customer_id}/attributes/custom", - body: MultiJson.dump(custom: attributes), - headers: { 'Content-Type' => 'application/json' }, + body: { custom: attributes }, method: :post, userpwd: client.userpwd, ) end @@ -52,11 +51,10 @@ # ] # # Returns the instance of Chartmogul::V1::Request. def update(customer_id, attributes = []) Chartmogul::V1::Request.new("#{BASE_URI}/#{customer_id}/attributes/custom", - body: MultiJson.dump(custom: attributes), - headers: { 'Content-Type' => 'application/json' }, + body: { custom: attributes }, method: :put, userpwd: client.userpwd, ) end end