Class: TaskMapper::Provider::Lighthouse::Project
- Inherits:
-
Base::Project
- Object
- Base::Project
- TaskMapper::Provider::Lighthouse::Project
- Defined in:
- lib/provider/project.rb
Overview
Project class for taskmapper-lighthouse
Constant Summary collapse
- API =
::Lighthouse::Project
Instance Attribute Summary collapse
-
#prefix_options ⇒ Object
Returns the value of attribute prefix_options.
Instance Method Summary collapse
-
#copy(project) ⇒ Object
copy from this.copy(that) copies that into this.
-
#destroy ⇒ Object
Delete this project.
Instance Attribute Details
#prefix_options ⇒ Object
Returns the value of attribute prefix_options.
7 8 9 |
# File 'lib/provider/project.rb', line 7 def @prefix_options end |
Instance Method Details
#copy(project) ⇒ Object
copy from this.copy(that) copies that into this
16 17 18 19 20 21 22 23 24 |
# File 'lib/provider/project.rb', line 16 def copy(project) project.tickets.each do |ticket| copy_ticket = self.ticket!(:title => ticket.title, :description => ticket.description) ticket.comments.each do |comment| copy_ticket.comment!(:body => comment.body) sleep 1 end end end |
#destroy ⇒ Object
Delete this project
10 11 12 13 |
# File 'lib/provider/project.rb', line 10 def destroy result = super result.is_a?(Net::HTTPOK) end |