Class: OpenID::Association

Inherits:
Object
  • Object
show all
Defined in:
lib/openid/association.rb

Direct Known Subclasses

ConsumerAssociation, ServerAssociation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(handle, secret, expiry, replace_after) ⇒ Association

Returns a new instance of Association.



12
13
14
15
16
17
# File 'lib/openid/association.rb', line 12

def initialize(handle, secret, expiry, replace_after)
  @handle = handle.to_s
  @secret = secret.to_s
  @replace_after = replace_after
  @expiry = expiry
end

Instance Attribute Details

#expiryObject

Returns the value of attribute expiry.



10
11
12
# File 'lib/openid/association.rb', line 10

def expiry
  @expiry
end

#handleObject

Returns the value of attribute handle.



10
11
12
# File 'lib/openid/association.rb', line 10

def handle
  @handle
end

#secretObject

Returns the value of attribute secret.



10
11
12
# File 'lib/openid/association.rb', line 10

def secret
  @secret
end