Class: TeamcityRestClient::BuildType
- Inherits:
-
Struct
- Object
- Struct
- TeamcityRestClient::BuildType
- Defined in:
- lib/teamcity-rest-client.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
Returns the value of attribute href.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
-
#teamcity ⇒ Object
Returns the value of attribute teamcity.
-
#web_url ⇒ Object
Returns the value of attribute web_url.
Instance Method Summary collapse
Instance Attribute Details
#href ⇒ Object
Returns the value of attribute href
85 86 87 |
# File 'lib/teamcity-rest-client.rb', line 85 def href @href end |
#id ⇒ Object
Returns the value of attribute id
85 86 87 |
# File 'lib/teamcity-rest-client.rb', line 85 def id @id end |
#name ⇒ Object
Returns the value of attribute name
85 86 87 |
# File 'lib/teamcity-rest-client.rb', line 85 def name @name end |
#project_id ⇒ Object
Returns the value of attribute project_id
85 86 87 |
# File 'lib/teamcity-rest-client.rb', line 85 def project_id @project_id end |
#project_name ⇒ Object
Returns the value of attribute project_name
85 86 87 |
# File 'lib/teamcity-rest-client.rb', line 85 def project_name @project_name end |
#teamcity ⇒ Object
Returns the value of attribute teamcity
85 86 87 |
# File 'lib/teamcity-rest-client.rb', line 85 def teamcity @teamcity end |
#web_url ⇒ Object
Returns the value of attribute web_url
85 86 87 |
# File 'lib/teamcity-rest-client.rb', line 85 def web_url @web_url end |
Instance Method Details
#builds(options = {}) ⇒ Object
86 87 88 |
# File 'lib/teamcity-rest-client.rb', line 86 def builds = {} teamcity.builds({:buildType => "id:#{id}"}.merge()) end |
#latest_build ⇒ Object
89 90 91 |
# File 'lib/teamcity-rest-client.rb', line 89 def latest_build builds(:count => 1)[0] end |