Class: TicketMaster::Provider::Lighthouse::Project

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

Overview

Project class for ticketmaster-lighthouse

Constant Summary collapse

API =
::Lighthouse::Project

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#prefix_optionsObject

Returns the value of attribute prefix_options.



7
8
9
# File 'lib/provider/project.rb', line 7

def prefix_options
  @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

#destroyObject

Delete this project



10
11
12
13
# File 'lib/provider/project.rb', line 10

def destroy
  result = super
  result.is_a?(Net::HTTPOK)
end