Class: MustardClient::AuthenticateClient
- Defined in:
- lib/MustardClient/authenticate.rb
Instance Method Summary collapse
Methods inherited from Client
Constructor Details
This class inherits a constructor from MustardClient::Client
Instance Method Details
#authenticate(username, password) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/MustardClient/authenticate.rb', line 5 def authenticate(username, password) command = {} command[:method] = :post command[:route] = @mustard_url + '/authenticate' command[:params] = {username: username, password: password} execute(command) end |