Class: OpenidCouchdbStore::Association
- Inherits:
-
CouchRest::Model::Base
- Object
- CouchRest::Model::Base
- OpenidCouchdbStore::Association
- Defined in:
- lib/openid_couchdb_store.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.by_server_url_and_handle(server, handle) ⇒ Object
23 24 25 |
# File 'lib/openid_couchdb_store.rb', line 23 def self.by_server_url_and_handle(server, handle) by_server_url_plus_handle(:key => "#{server}&#{handle}") end |
.expired ⇒ Object
27 28 29 |
# File 'lib/openid_couchdb_store.rb', line 27 def self.expired by_expires_at(:endkey => Time.now.to_i) end |
Instance Method Details
#generate_expires_at ⇒ Object
31 32 33 |
# File 'lib/openid_couchdb_store.rb', line 31 def generate_expires_at self['expires_at'] = self['issued'] + self['lifetime'] end |