Class: OpenID::AX::KeyValueMessage

Class | OpenID::AX::KeyValueMessage
In: | lib/openid/extensions/ax.rb
Parent: | AXMessage

Abstract class that implements a message that has attribute keys and values. It contains the common code between fetch_response and store_request.

### Methods

[] _get_extension_kv_args add_value count get get_single new parse_extension_args set_values

### Attributes

data | [R] |

### Public Class methods

new()

### Public Instance methods

[](type_uri)

retrieve the list of values for this attribute

_get_extension_kv_args(aliases = nil)

Get the extension arguments for the key/value pairs contained in this message.

add_value(type_uri, value)

Add a single value for the given attribute type to the message. If there are already values specified for this type, this value will be sent in addition to the values already specified.

count(type_uri)

get the number of responses for this attribute

get(type_uri)

retrieve the list of values for this attribute

get_single(type_uri, default = nil)

Get a single value for an attribute. If no value was sent for this attribute, use the supplied default. If there is more than one value for this attribute, this method will fail.

parse_extension_args(ax_args)

Parse attribute exchange key/value arguments into this object.

set_values(type_uri, values)

Set the values for the given attribute type. This replaces any values that have already been set for this attribute.

[Validate]