Class: Powncer::Authentication::Basic::Header

Inherits:
String
  • Object
show all
Defined in:
lib/powncer/authentication.rb

Instance Method Summary collapse

Methods inherited from String

#is_valid_date?, #is_valid_url?

Constructor Details

#initialize(username, password) ⇒ Header

Returns a new instance of Header.



74
75
76
# File 'lib/powncer/authentication.rb', line 74

def initialize(username, password)
  self << "Basic #{Base64.encode64("#{username}:#{password}")}"
end