Class: Xendify::Invoice
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
allowed_methods, #initialize, model_class, model_name
Constructor Details
This class inherits a constructor from Xendify::Base
Instance Method Details
#get(id:) ⇒ Object
37 38 39 40 |
# File 'lib/xendify/resources/invoice.rb', line 37 def get(id:) response = client.get("#{GET_PATH}/#{id}") Xendify::InvoiceModel.new(response) end |
#post(params:) ⇒ Object
42 43 44 45 |
# File 'lib/xendify/resources/invoice.rb', line 42 def post(params:) response = client.post(POST_PATH, params) Xendify::InvoiceModel.new(response) end |