Class: Wlc::Auth
- Inherits:
-
Object
- Object
- Wlc::Auth
- Defined in:
- lib/wlc/auth.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #header ⇒ Object
-
#initialize(client) ⇒ Auth
constructor
A new instance of Auth.
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
#client ⇒ Object
Returns the value of attribute client.
3 4 5 |
# File 'lib/wlc/auth.rb', line 3 def client @client end |
Instance Method Details
#header ⇒ Object
9 10 11 |
# File 'lib/wlc/auth.rb', line 9 def header "bearer #{client.current_token.access_token}" end |