Sha256: d30750c055564303a3b8c90423a1e5ee3e3c8226a5365e1816357cfd83586993

Contents?: true

Size: 434 Bytes

Versions: 7

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true
module FinApps
  module REST
    class Institutions < FinAppsCore::REST::Resources
      using ObjectExtensions
      using StringExtensions

      def list(search_term)
        not_blank(search_term, :search_term)
        # API errors when search_term is blank, maybe it shouldn't

        path = "#{end_point}/search/#{ERB::Util.url_encode(search_term)}"
        super path
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
finapps-2.2.7 lib/finapps/rest/institutions.rb
finapps-2.2.6 lib/finapps/rest/institutions.rb
finapps-2.2.5 lib/finapps/rest/institutions.rb
finapps-2.2.4 lib/finapps/rest/institutions.rb
finapps-2.2.3 lib/finapps/rest/institutions.rb
finapps-2.2.2 lib/finapps/rest/institutions.rb
finapps-2.2.1 lib/finapps/rest/institutions.rb