mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Value returning with error message
This commit is contained in:
parent
3fc3bfc1c4
commit
e4ac417bde
5 changed files with 28 additions and 3 deletions
|
@ -31,7 +31,7 @@ module Epp
|
|||
}
|
||||
|
||||
res.css('epp response result').each do |x|
|
||||
obj[:results] << {result_code: x[:code], msg: x.css('msg').text}
|
||||
obj[:results] << {result_code: x[:code], msg: x.css('msg').text, value: x.css('value > *').try(:first).try(:text)}
|
||||
end
|
||||
|
||||
obj[:result_code] = obj[:results][0][:result_code]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue