Class: TicketMaster::Provider::Tester::Ticket
- Inherits:
-
Base::Ticket
- Object
- Hashie::Mash
- Base::Ticket
- TicketMaster::Provider::Tester::Ticket
- Defined in:
- lib/ticketmaster/tester/ticket.rb
Overview
The Tester Provider’s Ticket class
Constant Summary
Constants inherited from Base::Ticket
Instance Attribute Summary
Attributes inherited from Base::Ticket
Instance Method Summary collapse
-
#initialize(project_id, *options) ⇒ Ticket
constructor
You don’t need to define an initializer, this is only here to initialize tester data.
Methods inherited from Base::Ticket
#close, #comment, #comment!, #comments, find, find_by_attributes, find_by_id, first, last, #reload!, search
Methods included from Helper
#easy_finder, #filter_string, #provider_parent, #search_by_attribute, #search_filter, #this_method
Methods included from Common
#destroy, included, #respond_to?, #save, #update!
Constructor Details
#initialize(project_id, *options) ⇒ Ticket
You don’t need to define an initializer, this is only here to initialize tester data
8 9 10 11 12 13 14 15 |
# File 'lib/ticketmaster/tester/ticket.rb', line 8 def initialize(project_id, *) 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', :project_id => project_id} @system = :tester super(data.merge(.first || {})) end |