Class: BadBill::InvoiceComment
- Inherits:
-
BaseResource
- Object
- BaseResource
- BadBill::InvoiceComment
- Defined in:
- lib/badbill/invoice_comment.rb
Overview
The InvoiceComment resource handles all invoice comments.
Instance Attribute Summary
Attributes inherited from BaseResource
Class Method Summary collapse
-
.all(invoice_id, actionkey = nil) ⇒ Array<InvoiceComment>
Get all Invoice Comments for given invoice id.
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, actionkey = nil) ⇒ Array<InvoiceComment>
Get all Invoice Comments for given invoice id.
14 15 16 17 18 19 20 21 22 |
# File 'lib/badbill/invoice_comment.rb', line 14 def self.all invoice_id, actionkey=nil params = { invoice_id: invoice_id } if actionkey actionkey = actionkey.join(',') if actionkey.respond_to?(:join) params[:actionkey] = actionkey end super params end |