class Api::HandlerBundlesInit

Public Class Methods

new(options = nil) click to toggle source

default constructor

Calls superclass method Api::HandlerBase::new
# File lib/mrpin/api/bundles/init/handler_bundles_init.rb, line 13
def initialize(options = nil)
  super(options)

  @managers_bundles_map = AppInfo.instance.managers_bundles_map
end

Public Instance Methods

handle_request(session, request) click to toggle source
Calls superclass method Api::HandlerBase#handle_request
# File lib/mrpin/api/bundles/init/handler_bundles_init.rb, line 19
def handle_request(session, request)
  super

  response = ResponseBundlesInit.new(request.request_id)

  manager_bundles = @managers_bundles_map[request.build_type]

  if manager_bundles.nil?
    response.url_data = nil
  else
    response.url_data = manager_bundles.url_client_data
  end

  session.send_response(response)
end