class LeanTesting::Client
Attributes
attachments[R]
auth[R]
bugs[R]
debugReturn[RW]
platform[R]
projects[R]
user[R]
Public Class Methods
new()
click to toggle source
# File lib/leantesting.rb, line 21 def initialize @accessToken = nil @auth = OAuth2Handler.new(self) @user = UserHandler.new(self) @projects = ProjectsHandler.new(self) @bugs = BugsHandler.new(self) @attachments = AttachmentsHandler.new(self) @platform = PlatformHandler.new(self) end
Public Instance Methods
attachToken(accessToken)
click to toggle source
Function to attach new token to SDK Client
instance. Token changes are dynamic; all objects/entities originating from an instance which has had its token updated will utilize the new token automatically.
Arguments:
accessToken String -- the string of the token to be attached
Exceptions:
SDKInvalidArgException if provided accessToken param is not a string
# File lib/leantesting.rb, line 57 def attachToken(accessToken) if !accessToken.is_a? String raise SDKInvalidArgException, '`accessToken` must be a string' end @accessToken = accessToken end
getCurrentToken()
click to toggle source
Function to retrieve curently attached token.
Returns:
String -- if a token is attached boolean -- if no token is attached
# File lib/leantesting.rb, line 39 def getCurrentToken if !@accessToken return false end @accessToken end