Class: OpenID::AX::StoreRequest
- Inherits:
-
KeyValueMessage
- Object
- Extension
- AXMessage
- KeyValueMessage
- OpenID::AX::StoreRequest
- Defined in:
- lib/openid/extensions/ax.rb
Overview
A store request attribute exchange message representation
Constant Summary collapse
- MODE =
'store_request'
Constants inherited from AXMessage
Instance Attribute Summary
Attributes inherited from KeyValueMessage
Attributes inherited from AXMessage
Class Method Summary collapse
-
.from_openid_request(oidreq) ⇒ Object
Extract a StoreRequest from an OpenID message message: OpenID::Message return a StoreRequest or nil if AX arguments are not present.
Instance Method Summary collapse
- #get_extension_args(aliases = nil) ⇒ Object
-
#initialize ⇒ StoreRequest
constructor
A new instance of StoreRequest.
Methods inherited from KeyValueMessage
#[], #_get_extension_kv_args, #add_value, #count, #get, #get_single, #parse_extension_args, #set_values
Methods inherited from Extension
Constructor Details
#initialize ⇒ StoreRequest
Returns a new instance of StoreRequest.
475 476 477 478 |
# File 'lib/openid/extensions/ax.rb', line 475 def initialize super @mode = MODE end |
Class Method Details
.from_openid_request(oidreq) ⇒ Object
Extract a StoreRequest from an OpenID message message: OpenID::Message return a StoreRequest or nil if AX arguments are not present
483 484 485 486 487 488 489 490 |
# File 'lib/openid/extensions/ax.rb', line 483 def self.from_openid_request(oidreq) = oidreq. ax_args = .get_args(NS_URI) return nil if ax_args.empty? or ax_args['mode'] != MODE req = new req.parse_extension_args(ax_args) req end |
Instance Method Details
#get_extension_args(aliases = nil) ⇒ Object
492 493 494 495 496 497 |
# File 'lib/openid/extensions/ax.rb', line 492 def get_extension_args(aliases=nil) ax_args = new_args kv_args = _get_extension_kv_args(aliases) ax_args.update(kv_args) return ax_args end |