Class: T2Airtime::OperatorsController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- T2Airtime::OperatorsController
- Defined in:
- app/controllers/t2_airtime/operators_controller.rb
Overview
Proxy operators information
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/t2_airtime/operators_controller.rb', line 4 def index @operators = T2Airtime::Operator.all(permitted_params[:country_id]) if @operators.success? render_data T2Airtime::Operator.serialize @operators.data, @operators.headers[:date] else render_error @operators end end |
#show ⇒ Object
noop
15 16 17 |
# File 'app/controllers/t2_airtime/operators_controller.rb', line 15 def show render_one 'operators' end |