Class: T2Airtime::AccountsController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- T2Airtime::AccountsController
- Defined in:
- app/controllers/t2_airtime/accounts_controller.rb
Overview
Proxy accounts information
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/t2_airtime/accounts_controller.rb', line 4 def show @account = T2Airtime::Account.get if @account.success? render_data T2Airtime::Account.serialize @account.data, @account.headers[:date] else render_error @account end end |