Sha256: 03f8afa589c77e6351521cc1d802fb3ef3b379e9b7e14e8ee6011e1ff21257d9

Contents?: true

Size: 340 Bytes

Versions: 7

Compression:

Stored size: 340 Bytes

Contents

module Rentvine
  class Client
    module Vendors
      def vendors(args = {})
        results = process_request(:get, 'vendors/search', params: args)
        return results if results.is_a?(RentvineError)

        results.map { |result| Rentvine::Vendor.new(result[:contact]) }
      end
      alias list_vendors vendors
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rentvine-0.4.0 lib/rentvine/client/vendors.rb
rentvine-0.3.3 lib/rentvine/client/vendors.rb
rentvine-0.3.2 lib/rentvine/client/vendors.rb
rentvine-0.3.1 lib/rentvine/client/vendors.rb
rentvine-0.3.0 lib/rentvine/client/vendors.rb
rentvine-0.2.0 lib/rentvine/client/vendors.rb
rentvine-0.1.0 lib/rentvine/client/vendors.rb