Class: BambooId::Urls::ApiKeyUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/bamboo_id/urls/api_key_url.rb

Instance Method Summary collapse

Constructor Details

#initialize(subdomain:, id_token:) ⇒ ApiKeyUrl

Returns a new instance of ApiKeyUrl.



4
5
6
7
# File 'lib/bamboo_id/urls/api_key_url.rb', line 4

def initialize(subdomain:, id_token:)
  self.subdomain = subdomain
  self.id_token  = id_token
end

Instance Method Details

#paramsObject



13
14
15
16
17
18
# File 'lib/bamboo_id/urls/api_key_url.rb', line 13

def params
  {
    id_token: id_token,
    applicationKey: Configuration.application_key
  }
end

#to_sObject



9
10
11
# File 'lib/bamboo_id/urls/api_key_url.rb', line 9

def to_s
  "https://api.bamboohr.com/api/gateway.php/#{subdomain}/v1/oidcLogin"
end