Class: Api::V1::TicketManagerController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/api/v1/ticket_manager_controller.rb

Instance Method Summary collapse

Instance Method Details

#open_ticketObject



7
8
9
10
11
12
13
# File 'app/controllers/api/v1/ticket_manager_controller.rb', line 7

def open_ticket
  return ticket_already_opened_response unless ticket_nil?
  return ticket_already_opened_response if ticket_active?
  return terms_not_confirmed_response unless ticket_params_confirmed?
  create_ticket if acceptable_create?
  ticket_opened_response
end