Parent

Class/Module Index [+]

Quicksearch

Fog::Brightbox::Storage::AuthenticationRequest

Attributes

access_token[RW]
management_url[RW]
tenant[RW]
user[RW]

Public Class Methods

new(config) click to toggle source
# File lib/fog/brightbox/storage/authentication_request.rb, line 8
def initialize(config)
  @config = config
end

Public Instance Methods

authenticate() click to toggle source
# File lib/fog/brightbox/storage/authentication_request.rb, line 12
def authenticate
  response = authentication_request

  self.access_token = response.headers["X-Auth-Token"]
  self.management_url = response.headers["X-Server-Management-Url"] || response.headers["X-Storage-Url"]
  self
rescue Excon::Errors::Error
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.