module Payable::Writeable
Public Instance Methods
create(params = {})
click to toggle source
# File lib/payable/writeable.rb, line 3 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