Class: Brainpickin::RemoteAuth

Inherits:
Object
  • Object
show all
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_urlObject

Raises:

  • (ArgumentError)


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

.tokenObject

Raises:

  • (ArgumentError)


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