lib/api.rb in bobes-textmagic-0.3.1 vs lib/api.rb in bobes-textmagic-0.3.2

- old
+ new

@@ -133,10 +133,11 @@ ids.flatten! raise TextMagic::API::Error.new(4, 'Insufficient parameters') if ids.empty? hash = Executor.execute('message_status', @username, @password, :ids => ids.join(',')) TextMagic::API::Response.message_status(hash, single) end + alias :status :message_status # Executes a receive command by sending a request to the TextMagic's # SMS gateway. # # This method returnes an array with retrieved messages. Every member of @@ -186,7 +187,8 @@ ids.flatten! raise TextMagic::API::Error.new(4, 'Insufficient parameters') if ids.empty? Executor.execute('delete_reply', @username, @password, :ids => ids.join(',')) true end + alias :delete :delete_reply end end