HabitatMap/AirCasting

View on GitHub
app/controllers/api/fixed_regions_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Api
  class FixedRegionsController < BaseController
    def show
      GoogleAnalyticsWorker::RegisterEvent.async_call('Fixed regions#show')
      hash = FixedRegionInfo.new.call(stream_ids)
      render json: hash, status: :ok
    end

    private

    def stream_ids
      @stream_ids ||= params.fetch(:stream_ids).split(",")
    end
  end
end