Sha256: 8a44b7042a5fe6520a96bd02c43ab9b1174061472f3e455b8fb3f5a517359741

Contents?: true

Size: 755 Bytes

Versions: 14

Compression:

Stored size: 755 Bytes

Contents

module TicketMaster::Provider
  module Lighthouse
    # Project class for ticketmaster-lighthouse
    # 
    # 
    class Project < TicketMaster::Provider::Base::Project
      attr_accessor :prefix_options
      API = ::Lighthouse::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

14 entries across 14 versions & 1 rubygems

Version Path
ticketmaster-lighthouse-0.8.0 lib/provider/project.rb
ticketmaster-lighthouse-0.7.10 lib/provider/project.rb
ticketmaster-lighthouse-0.7.9 lib/provider/project.rb
ticketmaster-lighthouse-0.7.8 lib/provider/project.rb
ticketmaster-lighthouse-0.6.8 lib/provider/project.rb
ticketmaster-lighthouse-0.6.7 lib/provider/project.rb
ticketmaster-lighthouse-0.5.7 lib/provider/project.rb
ticketmaster-lighthouse-0.5.6 lib/provider/project.rb
ticketmaster-lighthouse-0.5.5 lib/provider/project.rb
ticketmaster-lighthouse-0.5.4 lib/provider/project.rb
ticketmaster-lighthouse-0.5.3 lib/provider/project.rb
ticketmaster-lighthouse-0.5.2 lib/provider/project.rb
ticketmaster-lighthouse-0.5.1 lib/provider/project.rb
ticketmaster-lighthouse-0.5.0 lib/provider/project.rb