Method: T2Airtime::Base#run_action
- Defined in:
- lib/t2_airtime/base.rb
#run_action(name, method = :get) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/t2_airtime/base.rb', line 23 def run_action(name, method = :get) request = T2Airtime::Request.new(@user, @password, @url, name, @params) request.run(method).on_complete do |reply| return T2Airtime::Reply.new(reply) end end |