Sha256: 8556069356190a3c6e894c32c994d92eb18279272a9bcdc3165a2f7c07dc2b8a
Contents?: true
Size: 935 Bytes
Versions: 11
Compression:
Stored size: 935 Bytes
Contents
module Billimatic module Resources class InvoiceRule < Base def list(contract_id:) http.get( "/contracts/#{contract_id}#{resource_base_path}" ) { |response| respond_with_collection(response) } end def create(params, contract_id:) http.post( "/contracts/#{contract_id}#{resource_base_path}", body: { underscored_klass_name.to_sym => params } ) { |response| respond_with_entity(response) } end def update(id, params, contract_id:) http.put( "/contracts/#{contract_id}#{resource_base_path}/#{id}", body: { underscored_klass_name.to_sym => params } ) { |response| respond_with_entity(response) } end def destroy(id, contract_id:) http.delete( "/contracts/#{contract_id}#{resource_base_path}/#{id}" ) { |response| response.code == 204 } end end end end
Version data entries
11 entries across 11 versions & 1 rubygems