Class: BambooId::Requests::ApiKeyRequest

Inherits:
Object
  • Object
show all
Includes:
BasicRequestHandling
Defined in:
lib/bamboo_id/requests/api_key_request.rb

Instance Method Summary collapse

Methods included from BasicRequestHandling

included

Constructor Details

#initialize(subdomain:, id_token:) ⇒ ApiKeyRequest

Returns a new instance of ApiKeyRequest.



8
9
10
11
# File 'lib/bamboo_id/requests/api_key_request.rb', line 8

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

Instance Method Details

#keyObject



17
18
19
# File 'lib/bamboo_id/requests/api_key_request.rb', line 17

def key
  response.key
end

#successful?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/bamboo_id/requests/api_key_request.rb', line 13

def successful?
  response.success
end