Class: ApiAuth::Tokenize

Inherits:
Object
  • Object
show all
Defined in:
lib/api_auth/tokenize.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Tokenize

Returns a new instance of Tokenize.



3
4
5
# File 'lib/api_auth/tokenize.rb', line 3

def initialize(options={})
  @tokenize_this = options[:tokenize_this]
end

Instance Method Details

#generate_tokenObject



7
8
9
# File 'lib/api_auth/tokenize.rb', line 7

def generate_token
  @tokenize_this + ActiveSupport::SecureRandom.base64(44).tr('+/=', 'xyz')
end