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



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

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

    super(@template)
end

Class Method Details

.templateObject



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

#resultObject



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

def result
    super(binding)
end