module Vertebrae module Authorization # Check whether authentication credentials are present def authenticated? (username? && password?) end def basic_auth "#{username}:#{password}" end def authentication { :basic_auth => basic_auth } end end # Authorization end