Class: CreateTicketService
- Inherits:
-
ApplicationService
- Object
- ApplicationService
- CreateTicketService
- Defined in:
- app/services/create_ticket_service.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(user_id, pool_id, time_ref) ⇒ CreateTicketService
constructor
A new instance of CreateTicketService.
Constructor Details
#initialize(user_id, pool_id, time_ref) ⇒ CreateTicketService
Returns a new instance of CreateTicketService.
4 5 6 7 8 |
# File 'app/services/create_ticket_service.rb', line 4 def initialize(user_id, pool_id, time_ref) @user_id = user_id @pool_id = pool_id @time_ref = time_ref end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'app/services/create_ticket_service.rb', line 10 def call return false if ticket_exists? return false unless user_exists? if ticket_created? update_block_connections true else false end end |