Module: Rentvine::Client::Associations
- Included in:
- Rentvine::Client
- Defined in:
- lib/rentvine/client/associations.rb
Instance Method Summary collapse
- #associations(args = {}) ⇒ Object (also: #list_associations)
Instance Method Details
#associations(args = {}) ⇒ Object Also known as: list_associations
4 5 6 7 8 9 |
# File 'lib/rentvine/client/associations.rb', line 4 def associations(args = {}) results = process_request(:get, 'associations/search', params: args) return results if results.is_a?(RentvineError) results.map { |result| Rentvine::Association.new(result[:contact]) } end |