Module: Invoiced::Operations::Create
- Included in:
- Contact, Coupon, CreditBalanceAdjustment, CreditNote, Customer, Estimate, File, Invoice, Item, LineItem, Note, Payment, PaymentSource, Plan, Subscription, Task, TaxRate
- Defined in:
- lib/invoiced/operations/create.rb
Instance Method Summary collapse
Instance Method Details
#create(body = {}, opts = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/invoiced/operations/create.rb', line 4 def create(body={}, opts={}) response = @client.request(:post, endpoint(), body, opts) Util.convert_to_object(self, response[:body]) end |