Method: Code42::Token.from_string
- Defined in:
- lib/code42/token.rb
.from_string(token_string) ⇒ Object
7 8 9 10 11 |
# File 'lib/code42/token.rb', line 7 def from_string(token_string) tokens = token_string.split('-') new(cookie_token: tokens[0], url_token: tokens[1]) end |