Class: OmniAuth::Strategies::BisXmlGetLogonStatus

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logon_id, options = {}) ⇒ BisXmlGetLogonStatus

Returns a new instance of BisXmlGetLogonStatus.



222
223
224
225
226
227
# File 'lib/omniauth-nwbbis.rb', line 222

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

    super(@template)
end

Class Method Details

.templateObject



214
215
216
217
218
219
220
# File 'lib/omniauth-nwbbis.rb', line 214

def self.template
    %{
        <GibLogonStatus xmlns="http://tempuri.org/">
          <guid><%= @logon_id %></guid>
        </GibLogonStatus>
    }
end

Instance Method Details

#resultObject



229
230
231
# File 'lib/omniauth-nwbbis.rb', line 229

def result
    super(binding)
end