Class: Client
- Inherits:
-
CouchRest::Model::Base
- Object
- CouchRest::Model::Base
- Client
- Includes:
- Rack::CouchdbOAuth2::Model::Base
- Defined in:
- lib/couchdb_oauth2/model/client.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Rack::CouchdbOAuth2::Model::Base
Class Method Details
Instance Method Details
#identity ⇒ Object
21 22 23 |
# File 'lib/couchdb_oauth2/model/client.rb', line 21 def identity self['_id'] end |
#setup ⇒ Object
15 16 17 18 19 |
# File 'lib/couchdb_oauth2/model/client.rb', line 15 def setup if self.secret.nil? self.secret = ActiveSupport::SecureRandom.base64(64) end end |