Class: HealthDataStandards::Util::NLMHelper
- Inherits:
-
Object
- Object
- HealthDataStandards::Util::NLMHelper
- Defined in:
- lib/health-data-standards/util/nlm_helper.rb
Class Method Summary collapse
Class Method Details
.validateNLMUser(nlmUrl, proxy, nlmLicenseCode, nlmUser, nlmPassword) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/health-data-standards/util/nlm_helper.rb', line 6 def self.validateNLMUser(nlmUrl, proxy, nlmLicenseCode, nlmUser, nlmPassword) RestClient.proxy = proxy nlmResult = RestClient.post nlmUrl, {user: nlmUser, password: nlmPassword, licenseCode: nlmLicenseCode} doc = Nokogiri::XML(nlmResult) return doc.search('Result').text == 'true' end |