module T2Airtime # Proxy countries information class CountriesController < ApplicationController 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.error_message end end # noop def show render_one 'countries' end end end