Sha256: 30447f12af377084f85a7eeed0048087a14ab2feced36f1360406a497780a21e

Contents?: true

Size: 756 Bytes

Versions: 5

Compression:

Stored size: 756 Bytes

Contents

module TicketMaster::Provider
  module Lighthouse
    # Project class for ticketmaster-lighthouse
    # 
    # 
    class Project < TicketMaster::Provider::Base::Project
      attr_accessor :prefix_options
      API = LighthouseAPI::Project  
      # Delete this project
      def destroy
        result = super
        result.is_a?(Net::HTTPOK)
      end
      
      # copy from this.copy(that) copies that into this
      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

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ticketmaster-lighthouse-0.4.0 lib/provider/project.rb
ticketmaster-lighthouse-0.3.8 lib/provider/project.rb
ticketmaster-lighthouse-0.3.7 lib/provider/project.rb
ticketmaster-lighthouse-0.3.6 lib/provider/project.rb
ticketmaster-lighthouse-0.3.5 lib/provider/project.rb