Class: Cashboard::Payment

Inherits:
Base show all
Defined in:
lib/cashboard/payment.rb

Instance Attribute Summary

Attributes inherited from Base

#href, #id

Instance Method Summary collapse

Methods inherited from Base

authenticate, clear_authentication, create, #delete, #links, list, new_from_url, #to_xml, #update

Methods inherited from Struct

#initialize

Methods inherited from TypecastedOpenStruct

attr_typecast, element

Constructor Details

This class inherits a constructor from Cashboard::Struct

Instance Method Details

#invoice_payments(options = {}) ⇒ Object

Returns all InvoicePayments associated with this payment



15
16
17
18
19
# File 'lib/cashboard/payment.rb', line 15

def invoice_payments(options={})
  self.class.get_collection(
    self.links[:invoices], Cashboard::InvoicePayment, options
  )
end