Class: T2Airtime::CountriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- T2Airtime::CountriesController
- Defined in:
- app/controllers/t2_airtime/countries_controller.rb
Overview
Proxy countries information
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/t2_airtime/countries_controller.rb', line 4 def index @countries = T2Airtime::Country.all if @countries.success? render_data T2Airtime::Country.serialize @countries.data, @countries.headers[:date] else render_error T2Airtime::Error.new @countries.error_code, @countries. end end |
#show ⇒ Object
noop
16 17 18 |
# File 'app/controllers/t2_airtime/countries_controller.rb', line 16 def show render_one 'countries' end |