lib/t2_airtime/base.rb in t2_airtime-0.1.2 vs lib/t2_airtime/base.rb in t2_airtime-0.1.3

- old
+ new

@@ -14,12 +14,10 @@ end def run_action(name, method=:get) request = T2Airtime::Request.new(@user, @password, @url, name, @params) request.run(method).on_complete do |reply| - reply = T2Airtime::Reply.new(reply) - #raise ::T2Airtime::Error.new @reply.error_code, @reply.error_message unless @reply.success? - return reply.data + return T2Airtime::Reply.new(reply) end end end end \ No newline at end of file