Method: Ablab::ModuleMethods#dashboard_credentials
- Defined in:
- lib/ablab.rb
#dashboard_credentials(credentials = nil) ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/ablab.rb', line 38 def dashboard_credentials(credentials = nil) if credentials unless credentials[:name] && credentials[:password] raise InvalidCredentials, 'credentials should provide name and password' end @dashboard_credentials = credentials end @dashboard_credentials end |