Abstract class containing common code for attribute exchange messages
# File lib/openid/extensions/ax.rb, line 37 def initialize @ns_alias = 'ax' @ns_uri = NS_URI @mode = nil end
Raise an exception if the mode in the attribute exchange arguments does not match what is expected for this class.
# File lib/openid/extensions/ax.rb, line 47 def check_mode(ax_args) actual_mode = ax_args ? ax_args['mode'] : nil if actual_mode != @mode raise Error, "Expected mode #{mode.inspect}, got #{actual_mode.inspect}" end end
# File lib/openid/extensions/ax.rb, line 54 def new_args {'mode' => @mode} end