Class: TicketMaster::Provider::Yoursystem::Project

Inherits:
Base::Project
  • Object
show all
Defined in:
lib/ticketmaster/cli/commands/generate/provider/project.rb

Overview

Project class for ticketmaster-yoursystem

Constant Summary

Constants inherited from Base::Project

Base::Project::API

Instance Attribute Summary

Attributes inherited from Base::Project

#system, #system_data

Instance Method Summary collapse

Methods inherited from Base::Project

find, find_by_attributes, find_by_id, first, #initialize, last, search, #ticket, #ticket!, #tickets

Methods included from Helper

#easy_finder, #filter_string, #provider_parent, #search_by_attribute, #search_filter, #this_method

Methods included from Common

#destroy, included, #initialize, #respond_to?, #save, #update!

Constructor Details

This class inherits a constructor from TicketMaster::Provider::Base::Project

Instance Method Details

#copy(project) ⇒ Object

copy from this.copy(that) copies that into this



12
13
14
15
16
17
18
19
20
# File 'lib/ticketmaster/cli/commands/generate/provider/project.rb', line 12

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