Irio/mymoip — pull request #36 by hugomaiavieira (2013-10-05 13:48:53+00:00)
Title: Add NASP support

This is not for you to accept, is just an idea, to use it like this in a Rails app:

``` ruby
class MoipController < ApplicationController
skip_before_filter :verify_authenticity_token, only: [:nasp]

# controller method that receives Moip NASP POST
def nasp
nasp = MyMoip::Nasp.new(params)

invoice = Invoice.find(nasp.id)
invoice.update_attribute(:status, nasp.status)

if nasp.done?
# do something
end

render nothing: true
end
end
```

What you think about it?