Method: Ecoportal::API::Common::BatchOperation#create
- Defined in:
- lib/ecoportal/api/common/batch_operation.rb
#create(doc, &block) ⇒ Object
96 97 98 99 100 101 102 103 104 |
# File 'lib/ecoportal/api/common/batch_operation.rb', line 96 def create(doc, &block) body = get_body(doc) @operations << { path: @base_path, method: 'POST', body: body, callback: block } end |