class Trusona::Configuration
Represents Trusona
configuration
@attr token [String] The JWT token supplied by Trusona
for interacting
with the Trusona API
@attr secret [String] The secret supplied by Trusona
for interacting with
the Trusona API
@attr_reader api_host
[String] The full URL of the Trusona
API
(e.g. +https://api.trusona.net+)
Attributes
api_host[R]
secret[RW]
token[RW]
Public Class Methods
new()
click to toggle source
# File lib/trusona.rb, line 141 def initialize @api_host = 'api.trusona.net' end
Public Instance Methods
api_host=(host)
click to toggle source
sets the API host by first ensuring the proper format @param host [String] The full URL of the Trusona
API
# File lib/trusona.rb, line 148 def api_host=(host) @api_host = URI(host).host || host end