Class: BambooId::Requests::ApiKeyRequest
- Inherits:
-
Object
- Object
- BambooId::Requests::ApiKeyRequest
- Includes:
- BasicRequestHandling
- Defined in:
- lib/bamboo_id/requests/api_key_request.rb
Instance Method Summary collapse
-
#initialize(subdomain:, id_token:) ⇒ ApiKeyRequest
constructor
A new instance of ApiKeyRequest.
- #key ⇒ Object
- #successful? ⇒ Boolean
Methods included from BasicRequestHandling
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
#key ⇒ Object
17 18 19 |
# File 'lib/bamboo_id/requests/api_key_request.rb', line 17 def key response.key end |
#successful? ⇒ Boolean
13 14 15 |
# File 'lib/bamboo_id/requests/api_key_request.rb', line 13 def successful? response.success end |