Class: PlatformAPI::Invoice
- Inherits:
-
Object
- Object
- PlatformAPI::Invoice
- Defined in:
- lib/platform-api/client.rb
Overview
An invoice is an itemized bill of goods for an account which includes pricing and charges.
Instance Method Summary collapse
- #info(invoice_number) ⇒ Object
-
#initialize(client) ⇒ Invoice
constructor
A new instance of Invoice.
-
#list ⇒ Object
List existing invoices.
Constructor Details
#initialize(client) ⇒ Invoice
Returns a new instance of Invoice.
3022 3023 3024 |
# File 'lib/platform-api/client.rb', line 3022 def initialize(client) @client = client end |
Instance Method Details
#info(invoice_number) ⇒ Object
3034 3035 3036 |
# File 'lib/platform-api/client.rb', line 3034 def info(invoice_number) @client.invoice.info(invoice_number) end |
#list ⇒ Object
List existing invoices.
3041 3042 3043 |
# File 'lib/platform-api/client.rb', line 3041 def list() @client.invoice.list() end |