Class: Unm::BarRole

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/unm.rb

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, bar_role = "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/", bar_role), basic_auth: auth).body == "Y"
end