Class: BadBill::InvoiceItem

Inherits:
BaseResource show all
Defined in:
lib/badbill/invoice_item.rb

Overview

The InvoiceItem resource handles all invoice items.

See www.billomat.com/en/api/invoices/items/

Instance Attribute Summary

Attributes inherited from BaseResource

#data, #id

Class Method Summary collapse

Methods inherited from BaseResource

create, #delete, #error, find, #initialize, #save

Methods included from Resource

#call, #delete, #get, #post, #put

Methods included from ForwardMethods

#method_missing, #respond_to?

Constructor Details

This class inherits a constructor from BadBill::BaseResource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BadBill::ForwardMethods

Class Method Details

.all(invoice_id) ⇒ Array<InvoiceItem>

Get all resources of this type.


13
14
15
# File 'lib/badbill/invoice_item.rb', line 13

def self.all invoice_id
  super invoice_id: invoice_id
end