lib/provider/project.rb in ticketmaster-fogbugz-0.2.4 vs lib/provider/project.rb in ticketmaster-fogbugz-0.3.0

- old
+ new

@@ -56,10 +56,14 @@ Ticket.find_by_id(self.id, options.first) else raise "You can only search for a single ticket based on id" end end + + def ticket!(attributes_hash) + provider_parent(self.class)::Ticket.create(attributes_hash.merge :project_id => id) + end def self.find(*options) if options[0].first.is_a? Array options[0].first.collect { |project_id| self.find_by_id(project_id) } elsif options[0].first.is_a? Hash @@ -85,7 +89,5 @@ projects.flatten end end end end - -