Class: ATS::Shiro::Tokens
- Inherits:
-
Object
- Object
- ATS::Shiro::Tokens
- Defined in:
- lib/ats/shiro/tokens.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
Instance Method Summary collapse
-
#initialize(api) ⇒ Tokens
constructor
A new instance of Tokens.
- #introspect(token) ⇒ Object
Constructor Details
#initialize(api) ⇒ Tokens
Returns a new instance of Tokens.
6 7 8 |
# File 'lib/ats/shiro/tokens.rb', line 6 def initialize(api) @api = api end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
4 5 6 |
# File 'lib/ats/shiro/tokens.rb', line 4 def api @api end |
Instance Method Details
#introspect(token) ⇒ Object
10 11 12 |
# File 'lib/ats/shiro/tokens.rb', line 10 def introspect(token) api.post("tokens/introspect", params: { token: token }) end |