Class: MyMoipRails::BaseController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/my_moip_rails/base_controller.rb

Direct Known Subclasses

PurchasesController

Instance Method Summary collapse

Instance Method Details

#canceledObject



9
10
11
# File 'app/controllers/my_moip_rails/base_controller.rb', line 9

def canceled
  yield if params[:status_pagamento].eql?('5')
end

#doneObject



5
6
7
# File 'app/controllers/my_moip_rails/base_controller.rb', line 5

def done
  yield if params[:status_pagamento].eql?('4')
end

#refundedObject



17
18
19
# File 'app/controllers/my_moip_rails/base_controller.rb', line 17

def refunded
  yield if params[:status_pagamento].eql?('9')
end

#reversedObject



13
14
15
# File 'app/controllers/my_moip_rails/base_controller.rb', line 13

def reversed
  yield if params[:status_pagamento].eql?('7')
end