Sha256: fca929f7b2d4bceaa3376d79ae48cad1838c6fec2c6896654b0daeeb4906bff6

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 Bytes

Contents

module Mks
  module Rate
    class ServiceRatesController < ApplicationController
      def index
        render json: Mks::Common::MethodResponse.success_response(ServiceRate.all)
      end

      def working_rates
        rates = ServiceRate.all
        render json: rates, each_serializer: WorkingRateSerializer
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mks_rate-1.0.5 app/controllers/mks/rate/service_rates_controller.rb
mks_rate-1.0.4 app/controllers/mks/rate/service_rates_controller.rb
mks_rate-1.0.3 app/controllers/mks/rate/service_rates_controller.rb
mks_rate-1.0.2 app/controllers/mks/rate/service_rates_controller.rb
mks_rate-1.0.1 app/controllers/mks/rate/service_rates_controller.rb