Class: Communicator::Server

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/communicator/server.rb

Class Attribute Summary collapse

Class Attribute Details

.passwordObject

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

.usernameObject

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