Class: Zendesk::RemoteAuthentication

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

Class Attribute Summary collapse

Class Attribute Details

.auth_urlObject

Raises:

  • (ArgumentError)


14
15
16
17
# File 'lib/zendesk_remote_authentication.rb', line 14

def auth_url
  raise ArgumentError.new('Set your Zendesk authentication url with, Zendesk::RemoteAuthentication.auth_url = <token>') unless @auth_url
  @auth_url
end

.tokenObject

Raises:

  • (ArgumentError)


9
10
11
12
# File 'lib/zendesk_remote_authentication.rb', line 9

def token
  raise ArgumentError.new('Set your Zendesk token with. Zendesk::RemoteAuthentication.token = <token>') unless @token
  @token
end