Class: ChartMogul::Invoice
Class Method Summary
collapse
Instance Method Summary
collapse
#destroy!, included
included
Methods inherited from APIResource
connection, handle_other_error, handle_request_error, handling_errors, set_resource_name, set_resource_path, set_resource_root_key
Class Method Details
.all(options = {}) ⇒ Object
28
29
30
|
# File 'lib/chartmogul/invoice.rb', line 28
def self.all(options = {})
Invoices.all(options)
end
|
Instance Method Details
#serialize_line_items ⇒ Object
20
21
22
|
# File 'lib/chartmogul/invoice.rb', line 20
def serialize_line_items
line_items.map(&:serialize_for_write)
end
|
#serialize_transactions ⇒ Object
24
25
26
|
# File 'lib/chartmogul/invoice.rb', line 24
def serialize_transactions
transactions.map(&:serialize_for_write)
end
|