Class: OpenID::ConsumerAssociation
- Inherits:
-
Association
- Object
- Association
- OpenID::ConsumerAssociation
- Defined in:
- lib/openid/association.rb
Overview
Represents an association established for a consumer.
Instance Attribute Summary collapse
-
#server_url ⇒ Object
Returns the value of attribute server_url.
Attributes inherited from Association
Instance Method Summary collapse
- #get_replace_after ⇒ Object
-
#initialize(server_url, handle, secret, expiry, replace_after) ⇒ ConsumerAssociation
constructor
A new instance of ConsumerAssociation.
Constructor Details
#initialize(server_url, handle, secret, expiry, replace_after) ⇒ ConsumerAssociation
Returns a new instance of ConsumerAssociation.
25 26 27 28 |
# File 'lib/openid/association.rb', line 25 def initialize(server_url, handle, secret, expiry, replace_after) super(handle, secret, expiry, replace_after) @server_url = server_url.to_s end |
Instance Attribute Details
#server_url ⇒ Object
Returns the value of attribute server_url.
23 24 25 |
# File 'lib/openid/association.rb', line 23 def server_url @server_url end |
Instance Method Details
#get_replace_after ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/openid/association.rb', line 30 def get_replace_after if @replace_after return @replace_after else return @expiry end end |