Class: OmniAuth::Strategies::BisXmlGetUserInfo

Inherits:
ERB
  • Object
show all
Defined in:
lib/omniauth-nwbbis.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, options = {}) ⇒ BisXmlGetUserInfo

Returns a new instance of BisXmlGetUserInfo.



202
203
204
205
206
207
# File 'lib/omniauth-nwbbis.rb', line 202

def initialize(username, options = {})
    @username = username
    @template = options.fetch(:template, self.class.template)

    super(@template)
end

Class Method Details

.templateObject



194
195
196
197
198
199
200
# File 'lib/omniauth-nwbbis.rb', line 194

def self.template
    %{
        <GibBenutzer xmlns="http://tempuri.org/">
          <benutzername><%= @username %></benutzername>
        </GibBenutzer>
    }
end

Instance Method Details

#resultObject



209
210
211
# File 'lib/omniauth-nwbbis.rb', line 209

def result
    super(binding)
end