Class: Communicator::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Communicator::Server
- Defined in:
- lib/communicator/server.rb
Class Attribute Summary collapse
-
.password ⇒ Object
Return configured password for http auth basic or raise an error message if not configured.
-
.username ⇒ Object
Return configured username for http auth basic or raise an error message if not configured.
Class Attribute Details
.password ⇒ Object
Return configured password for http auth basic or raise an error message if not configured
14 15 16 |
# File 'lib/communicator/server.rb', line 14 def password @password || raise("No Password specified for HTTP AUTH. Please configure using Communicator::Server.password='xyz'") end |
.username ⇒ Object
Return configured username for http auth basic or raise an error message if not configured
9 10 11 |
# File 'lib/communicator/server.rb', line 9 def username @username || raise("No Username specified for HTTP AUTH. Please configure using Communicator::Server.username='xyz'") end |