Class: Unm::BarRole
Class Method Summary collapse
Class Method Details
.check(candidate, bar_role = "STU_GEN_RPTS_COHORT_ANALYTICS") ⇒ Object
105 106 107 108 109 |
# File 'lib/unm.rb', line 105 def self.check(candidate, = "STU_GEN_RPTS_COHORT_ANALYTICS") base_uri = "http://baa.unm.edu/rest/auth/netid/" auth = { username: Unm.configuration.netid, password: Unm.configuration.password } HTTParty.get(URI.join(base_uri, candidate + "/", "accessRole/", ), basic_auth: auth).body == "Y" end |