Class: Wlc::Auth

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Auth

Returns a new instance of Auth.



5
6
7
# File 'lib/wlc/auth.rb', line 5

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



3
4
5
# File 'lib/wlc/auth.rb', line 3

def client
  @client
end

Instance Method Details

#headerObject



9
10
11
# File 'lib/wlc/auth.rb', line 9

def header
  "bearer #{client.current_token.access_token}"
end