Class: Brainpickin::RemoteAuth
- Inherits:
-
Object
- Object
- Brainpickin::RemoteAuth
- Defined in:
- lib/brainpickin_remote_auth.rb
Overview
Handles storing the token and auth_url (endpoint) for the brainpickin side.
Class Attribute Summary collapse
Class Attribute Details
.auth_url ⇒ Object
20 21 22 23 |
# File 'lib/brainpickin_remote_auth.rb', line 20 def auth_url raise ArgumentError.new('brainpickin auth_url must be set. Set with Brainpickin::RemoteAuth.auth_url = <url>') unless @auth_url @auth_url end |
.token ⇒ Object
15 16 17 18 |
# File 'lib/brainpickin_remote_auth.rb', line 15 def token raise ArgumentError.new('brainpickin token must be set. Set with Brainpickin::RemoteAuth.token = <token>') unless @token @token end |