Class: Cashboard::ClientCompany
- Inherits:
-
Base
- Object
- OpenStruct
- TypecastedOpenStruct
- Struct
- Base
- Cashboard::ClientCompany
- Defined in:
- lib/cashboard/client_company.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#memberships(options = {}) ⇒ Object
Returns all associated CompanyMemberships.
Methods inherited from Base
authenticate, clear_authentication, create, #delete, #links, list, new_from_url, #to_xml, #update
Methods inherited from Struct
Methods inherited from TypecastedOpenStruct
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(={}) self.class.get_collection( self.links[:memberships], Cashboard::CompanyMembership, ) end |