Class: Keycloak_FFI::KeycloakToken

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/libkeycloak.rb

Overview

Token service

Instance Method Summary collapse

Instance Method Details

#expirationObject



94
95
96
# File 'lib/libkeycloak.rb', line 94

def expiration
  self[:token]
end

#to_hObject



87
88
89
90
91
92
# File 'lib/libkeycloak.rb', line 87

def to_h
  {
    token: self[:token],
    expiration: self[:expiration]
  }
end

#tokenObject



83
84
85
# File 'lib/libkeycloak.rb', line 83

def token
  self[:token]
end