Class: Cashboard::ClientCompany

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



19
20
21
22
23
# File 'lib/cashboard/client_company.rb', line 19

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