Class: VSTS::Configuration
- Inherits:
-
Object
- Object
- VSTS::Configuration
- Defined in:
- lib/vsts/configuration.rb
Overview
Configuration class for ruby_vsts
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#area ⇒ Object
Returns the value of attribute area.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#collection ⇒ Object
Returns the value of attribute collection.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#personal_access_token ⇒ Object
Returns the value of attribute personal_access_token.
-
#team_project ⇒ Object
Returns the value of attribute team_project.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_version ⇒ Object
Returns the value of attribute api_version.
6 7 8 |
# File 'lib/vsts/configuration.rb', line 6 def api_version @api_version end |
#area ⇒ Object
Returns the value of attribute area.
6 7 8 |
# File 'lib/vsts/configuration.rb', line 6 def area @area end |
#base_url ⇒ Object
Returns the value of attribute base_url.
6 7 8 |
# File 'lib/vsts/configuration.rb', line 6 def base_url @base_url end |
#collection ⇒ Object
Returns the value of attribute collection.
6 7 8 |
# File 'lib/vsts/configuration.rb', line 6 def collection @collection end |
#debug ⇒ Object
Returns the value of attribute debug.
7 8 9 |
# File 'lib/vsts/configuration.rb', line 7 def debug @debug end |
#personal_access_token ⇒ Object
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_project ⇒ Object
Returns the value of attribute team_project.
6 7 8 |
# File 'lib/vsts/configuration.rb', line 6 def team_project @team_project end |