Class: Keycloak_FFI::KeycloakUserinfo

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.release(ptr) ⇒ Object



203
204
205
206
207
208
# File 'lib/libkeycloak.rb', line 203

def self.release ptr
  unless ptr.nil?
    Keycloak_FFI.keycloak_destroy_userinfo(ptr)
    FFI::LibC.free(ptr)
  end
end

Instance Method Details

#emailObject



199
200
201
# File 'lib/libkeycloak.rb', line 199

def email
  self[:email]
end

#email_verifiedObject



179
180
181
# File 'lib/libkeycloak.rb', line 179

def email_verified
  self[:email_verified]
end

#family_nameObject



195
196
197
# File 'lib/libkeycloak.rb', line 195

def family_name
  self[:family_name]
end

#given_nameObject



191
192
193
# File 'lib/libkeycloak.rb', line 191

def given_name
  self[:given_name]
end

#nameObject



183
184
185
# File 'lib/libkeycloak.rb', line 183

def name
  self[:name]
end

#preferred_usernameObject



187
188
189
# File 'lib/libkeycloak.rb', line 187

def preferred_username
  self[:preferred_username]
end

#subObject



175
176
177
# File 'lib/libkeycloak.rb', line 175

def sub
  self[:sub]
end