Class: ApiAuth::Tokenize
- Inherits:
-
Object
- Object
- ApiAuth::Tokenize
- Defined in:
- lib/api_auth/tokenize.rb
Instance Method Summary collapse
- #generate_token ⇒ Object
-
#initialize(options = {}) ⇒ Tokenize
constructor
A new instance of Tokenize.
Constructor Details
#initialize(options = {}) ⇒ Tokenize
Returns a new instance of Tokenize.
3 4 5 |
# File 'lib/api_auth/tokenize.rb', line 3 def initialize(={}) @tokenize_this = [:tokenize_this] end |
Instance Method Details
#generate_token ⇒ Object
7 8 9 |
# File 'lib/api_auth/tokenize.rb', line 7 def generate_token @tokenize_this + ActiveSupport::SecureRandom.base64(44).tr('+/=', 'xyz') end |