lib/rack/oauth2/models/client.rb in rack-oauth2-server-2.0.0.beta5 vs lib/rack/oauth2/models/client.rb in rack-oauth2-server-2.0.0.beta6

- old
+ new

@@ -89,9 +89,13 @@ attr_reader :notes # Does what it says on the label. attr_reader :created_at # Timestamp if revoked. attr_accessor :revoked + # Counts how many access tokens were granted. + attr_reader :tokens_granted + # Counts how many access tokens were revoked. + attr_reader :tokens_revoked # Revoke all authorization requests, access grants and access tokens for # this client. Ward off the evil. def revoke! self.revoked = Time.now.to_i