Class: Pasaporte::Models::Association

Inherits:
Base
  • Object
show all
Defined in:
lib/pasaporte/models.rb

Overview

Openid assocs

Instance Method Summary collapse

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


228
229
230
# File 'lib/pasaporte/models.rb', line 228

def expired?
  Time.now.to_i > (issued + lifetime)
end

#from_recordObject



224
225
226
# File 'lib/pasaporte/models.rb', line 224

def from_record
  OpenID::Association.new(handle, secret, issued, lifetime, assoc_type)
end