Class: Xenon::Headers::WWWAuthenticate
- Inherits:
-
ListHeader
- Object
- Xenon::Headers::WWWAuthenticate
- Defined in:
- lib/xenon/headers/www_authenticate.rb
Overview
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*challenges) ⇒ WWWAuthenticate
constructor
A new instance of WWWAuthenticate.
- #to_s ⇒ Object
Constructor Details
#initialize(*challenges) ⇒ WWWAuthenticate
Returns a new instance of WWWAuthenticate.
38 39 40 |
# File 'lib/xenon/headers/www_authenticate.rb', line 38 def initialize(*challenges) super(challenges) end |
Class Method Details
.parse(s) ⇒ Object
44 45 46 47 |
# File 'lib/xenon/headers/www_authenticate.rb', line 44 def self.parse(s) tree = Parsers::WWWAuthenticateHeader.new.parse(s) Parsers::WWWAuthenticateHeaderTransform.new.apply(tree) end |
Instance Method Details
#to_s ⇒ Object
49 50 51 |
# File 'lib/xenon/headers/www_authenticate.rb', line 49 def to_s challenges.map(&:to_s).join(', ') end |