Class: TicketMaster::Provider::Bugshelf::Project
- Inherits:
-
TicketMaster::Provider::Base::Project
- Object
- TicketMaster::Provider::Base::Project
- TicketMaster::Provider::Bugshelf::Project
- Defined in:
- lib/provider/project.rb
Overview
Project class for ticketmaster-bugshelf
Constant Summary collapse
- API =
The class to access the api’s projects
BugshelfAPI::Project
Instance Method Summary collapse
-
#copy(project) ⇒ Object
copy from this.copy(that) copies that into this.
Instance Method Details
#copy(project) ⇒ Object
copy from this.copy(that) copies that into this
10 11 12 13 14 15 16 17 18 |
# File 'lib/provider/project.rb', line 10 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 |