Class: Cashboard::ClientContact

Inherits:
Base show all
Defined in:
lib/cashboard/client_contact.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

#memberships(options = {}) ⇒ Object

Returns all associated CompanyMemberships



25
26
27
28
29
# File 'lib/cashboard/client_contact.rb', line 25

def memberships(options={})
  self.class.get_collection(
    self.links[:memberships], Cashboard::CompanyMembership, options
  )
end