Class: OpenidCouchdbStore::Nonce

Inherits:
CouchRest::Model::Base
  • Object
show all
Defined in:
lib/openid_couchdb_store.rb

Class Method Summary collapse

Class Method Details

.expiredObject



54
55
56
# File 'lib/openid_couchdb_store.rb', line 54

def self.expired
  by_timestamp(:endkey => Time.now.to_i)
end

.first_nonce(server_url, timestamp, salt) ⇒ Object



50
51
52
# File 'lib/openid_couchdb_store.rb', line 50

def self.first_nonce(server_url,timestamp,salt)
  by_server_url_salt_timestamp(:key => "#{server_url}&#{salt}&#{timestamp}").first
end