Sha256: 4e2a57e4f52533fa24e35a0c3cf82a7463aed80cbd78c1d92861809650fa17e3

Contents?: true

Size: 479 Bytes

Versions: 11

Compression:

Stored size: 479 Bytes

Contents

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

      def list(search_term)
        raise MissingArgumentsError.new 'Missing argument: search_term' if search_term.blank?
        # 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

11 entries across 11 versions & 1 rubygems

Version Path
finapps-2.1.4 lib/finapps/rest/institutions.rb
finapps-2.1.3 lib/finapps/rest/institutions.rb
finapps-2.1.2 lib/finapps/rest/institutions.rb
finapps-2.1.1 lib/finapps/rest/institutions.rb
finapps-2.0.30 lib/finapps/rest/institutions.rb
finapps-2.0.29 lib/finapps/rest/institutions.rb
finapps-2.0.28 lib/finapps/rest/institutions.rb
finapps-2.0.27 lib/finapps/rest/institutions.rb
finapps-2.0.26 lib/finapps/rest/institutions.rb
finapps-2.0.25 lib/finapps/rest/institutions.rb
finapps-2.0.24 lib/finapps/rest/institutions.rb