Class: VSTS::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/vsts/configuration.rb

Overview

Configuration class for ruby_vsts

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
14
15
16
17
# File 'lib/vsts/configuration.rb', line 9

def initialize
  @personal_access_token = ""
  @base_url = ""
  @collection = "DefaultCollection"
  @team_project = nil
  @area = nil
  @api_version = "1.0"
  @debug = true
end

Instance Attribute Details

#api_versionObject

Returns the value of attribute api_version.



6
7
8
# File 'lib/vsts/configuration.rb', line 6

def api_version
  @api_version
end

#areaObject

Returns the value of attribute area.



6
7
8
# File 'lib/vsts/configuration.rb', line 6

def area
  @area
end

#base_urlObject

Returns the value of attribute base_url.



6
7
8
# File 'lib/vsts/configuration.rb', line 6

def base_url
  @base_url
end

#collectionObject

Returns the value of attribute collection.



6
7
8
# File 'lib/vsts/configuration.rb', line 6

def collection
  @collection
end

#debugObject

Returns the value of attribute debug.



7
8
9
# File 'lib/vsts/configuration.rb', line 7

def debug
  @debug
end

#personal_access_tokenObject

Returns the value of attribute personal_access_token.



5
6
7
# File 'lib/vsts/configuration.rb', line 5

def personal_access_token
  @personal_access_token
end

#team_projectObject

Returns the value of attribute team_project.



6
7
8
# File 'lib/vsts/configuration.rb', line 6

def team_project
  @team_project
end