Class: SSEDAP::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/ssedap/client.rb,
lib/ssedap/client/version.rb

Constant Summary collapse

VERSION =
"0.0.4"

Instance Method Summary collapse

Constructor Details

#initialize(host = nil) ⇒ Client

Returns a new instance of Client.



8
9
10
# File 'lib/ssedap/client.rb', line 8

def initialize(host=nil)
  @host = host unless host.nil?
end

Instance Method Details

#authorize(username, password) ⇒ Object



16
17
18
# File 'lib/ssedap/client.rb', line 16

def authorize(username, password)
  api_call "/api/authorize", username: username, password: password
end

#create_anon(username, password) ⇒ Object



12
13
14
# File 'lib/ssedap/client.rb', line 12

def create_anon(username, password)
  api_cal "/api/create_anon", username: username, password: password
end

#userinfo(username, password, lookup) ⇒ Object



20
21
22
# File 'lib/ssedap/client.rb', line 20

def userinfo(username, password, lookup)
  api_call "/api/userinfo", username: username, password: password, lookup: lookup
end