Class: OmniAuth::Strategies::BisXmlGetUserInfo
- Inherits:
-
ERB
- Object
- ERB
- OmniAuth::Strategies::BisXmlGetUserInfo
- Defined in:
- lib/omniauth-nwbbis.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(username, options = {}) ⇒ BisXmlGetUserInfo
constructor
A new instance of BisXmlGetUserInfo.
- #result ⇒ Object
Constructor Details
#initialize(username, options = {}) ⇒ BisXmlGetUserInfo
201 202 203 204 205 206 |
# File 'lib/omniauth-nwbbis.rb', line 201 def initialize(username, = {}) @username = username @template = .fetch(:template, self.class.template) super(@template) end |
Class Method Details
.template ⇒ Object
193 194 195 196 197 198 199 |
# File 'lib/omniauth-nwbbis.rb', line 193 def self.template %{ <GibBenutzer xmlns="http://tempuri.org/"> <benutzername><%= @username %></benutzername> </GibBenutzer> } end |
Instance Method Details
#result ⇒ Object
208 209 210 |
# File 'lib/omniauth-nwbbis.rb', line 208 def result super(binding) end |