Method: WCC::Data::RESTEndpoint#create

Defined in:
lib/wcc/data/rest_endpoint.rb

#create(attrs, options = {}) ⇒ Object



18
19
20
# File 'lib/wcc/data/rest_endpoint.rb', line 18

def create(attrs, options={})
  service.post(options.merge(body: attrs))
end