Sha256: cd8fdd702ce7711375b803a32c978878400a37af8c0a54f844dcb350dc78902d
Contents?: true
Size: 288 Bytes
Versions: 3
Compression:
Stored size: 288 Bytes
Contents
module Payable module Writeable def create(params = {}) client = params.delete(:client){ Payable.client } new client.post(api_url.join(collection), params).body rescue Faraday::ClientError => e raise InvalidRequest.new(e.response), e.message end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
payable-api-0.1.2 | lib/payable/writeable.rb |
payable-api-0.1.1 | lib/payable/writeable.rb |
payable-api-0.1.0 | lib/payable/writeable.rb |