Class: Fuci::TeamCity::Project

Inherits:
Struct
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/fuci/team_city/project.rb

Constant Summary collapse

RESOURCE =
lambda { |name| "/httpAuth/app/rest/projects/name:#{name}" }

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#xml_docObject

Returns the value of attribute xml_doc

Returns:

  • (Object)

    the current value of xml_doc



7
8
9
# File 'lib/fuci/team_city/project.rb', line 7

def xml_doc
  @xml_doc
end

Class Method Details

.from_nameObject



18
19
20
# File 'lib/fuci/team_city/project.rb', line 18

def self.from_name
  new xml_doc
end

Instance Method Details

#latest_build_from(branch_name) ⇒ Object



14
15
16
# File 'lib/fuci/team_city/project.rb', line 14

def latest_build_from branch_name
  builds_from(branch_name).first
end