Sha256: 2296a0471b30e1180dd6a1c151c0bddbe44e447708bc1a4fdf1da5003bf49dc3

Contents?: true

Size: 785 Bytes

Versions: 9

Compression:

Stored size: 785 Bytes

Contents

module TicketMaster::Provider
  module Tester
    # This is the Comment class for the Tester provider
    class Comment < TicketMaster::Provider::Base::Comment
                 
      # You don't need to define an initializer, this is only here to initialize tester data
      def initialize(project_id, ticket_id, *options)
        data = {:id => rand(1000), :status => ['lol', 'rofl', 'lmao', 'lamo', 'haha', 'heh'][rand(6)],
          :priority => rand(10), :summary => 'Tickets ticket ticket ticket', :resolution => false,
          :created_at => Time.now, :updated_at => Time.now, :description => 'Ticket ticket ticket ticket laughing',
          :assignee => 'lol-man'}
        @system = :tester
        super(data.merge(options.first || {}))
      end
      
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ticketmaster-0.7.0 lib/ticketmaster/tester/comment.rb
ticketmaster-0.6.10 lib/ticketmaster/tester/comment.rb
ticketmaster-0.6.9 lib/ticketmaster/tester/comment.rb
ticketmaster-0.6.8 lib/ticketmaster/tester/comment.rb
ticketmaster-0.6.7 lib/ticketmaster/tester/comment.rb
ticketmaster-0.6.6 lib/ticketmaster/tester/comment.rb
ticketmaster-0.5.6 lib/ticketmaster/tester/comment.rb
ticketmaster-0.5.5 lib/ticketmaster/tester/comment.rb
ticketmaster-0.5.3 lib/ticketmaster/tester/comment.rb