class Netilion::Authentication
Public Instance Methods
before_request()
click to toggle source
# File lib/netilion/authentication.rb, line 5 def before_request request.options[:auth] = { basic: { username: ::Netilion.config.username, password: ::Netilion.config.password } } request.headers['Api-Key'] = ::Netilion.config.api_key end