aggcat 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/aggcat/client.rb +1 -1
- data/lib/aggcat/version.rb +1 -1
- metadata +1 -1
data/lib/aggcat/client.rb
CHANGED
@@ -126,7 +126,7 @@ module Aggcat
|
|
126
126
|
|
127
127
|
def credentials(institution_id, username, password)
|
128
128
|
institution = institution(institution_id)
|
129
|
-
raise ArgumentError.new("institution_id #{institution_id} is invalid") if institution.nil?
|
129
|
+
raise ArgumentError.new("institution_id #{institution_id} is invalid") if institution.nil? || institution[:result][:institution_detail].empty?
|
130
130
|
keys = institution[:result][:institution_detail][:keys][:key].sort { |a, b| a[:display_order] <=> b[:display_order] }
|
131
131
|
hash = {
|
132
132
|
keys[0][:name] => username,
|
data/lib/aggcat/version.rb
CHANGED