Sha256: 40a03c167b426567cc1f7bd98f7bbc9056dcf3c8ddbfdc768d2d60a798e04843

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

module Rentvine
  class Client
    module Associations
      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
      alias list_associations associations
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rentvine-0.3.1 lib/rentvine/client/associations.rb
rentvine-0.3.0 lib/rentvine/client/associations.rb
rentvine-0.2.0 lib/rentvine/client/associations.rb
rentvine-0.1.0 lib/rentvine/client/associations.rb