Skip to content

Instantly share code, notes, and snippets.

@lucassimon
Last active June 10, 2021 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucassimon/e97305e8baa14bfe871d93f80bcd179b to your computer and use it in GitHub Desktop.
Save lucassimon/e97305e8baa14bfe871d93f80bcd179b to your computer and use it in GitHub Desktop.
KratosServices
class KratosServices
def initialize(client)
# instance of the follow clients
# - FerreriKratosSdk::Clients::ClientRest
# - FerreriKratosSdk::Clients::ClientOry
@client = client
end
def login(body)
@client.login(body)
end
def register(body)
# TODO: Raise exceptions
begin
@client.register(body)
rescue StandardError => e
raise e
end
end
def verification()
@client.verification()
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment