lib/auth_lh.rb in auth-lh-0.2.0 vs lib/auth_lh.rb in auth-lh-0.2.1

- old
+ new

@@ -38,9 +38,13 @@ def self.get_roles results = get_request('/api/roles') results.map { |r| Role.new(r) } end + def self.get_role(code) + Role.new(get_request("/api/roles/#{code}")) + end + def self.login_url login_attempt = create_login_attempt "#{@endpoint}/login?attempt=#{login_attempt.token}" end