Class: BadBill::InvoiceItem
- Inherits:
-
BaseResource
- Object
- BaseResource
- BadBill::InvoiceItem
- Defined in:
- lib/badbill/invoice_item.rb
Overview
The InvoiceItem resource handles all invoice items.
Instance Attribute Summary
Attributes inherited from BaseResource
Class Method Summary collapse
-
.all(invoice_id) ⇒ Array<InvoiceItem>
Get all resources of this type.
Methods inherited from BaseResource
create, #delete, #error, find, #initialize, #save
Methods included from Resource
#call, #delete, #get, #post, #put
Methods included from ForwardMethods
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 |