Class: PagarMe::Transaction
- Inherits:
-
TransactionCommon
- Object
- PagarMeObject
- Model
- TransactionCommon
- PagarMe::Transaction
- Defined in:
- lib/pagarme/transaction.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from TransactionCommon
#card_data_parameters, #create, #generate_card_hash, #initialize
Methods inherited from Model
all, class_name, #create, find_by, find_by_id, #save, url, #url
Methods inherited from PagarMeObject
#[], #[]=, build, #each, #initialize, #to_hash, #unsaved_values, #update
Constructor Details
This class inherits a constructor from PagarMe::TransactionCommon
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PagarMe::PagarMeObject
Class Method Details
Instance Method Details
#capture(params = {}) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/pagarme/transaction.rb', line 19 def capture(params={}) request = PagarMe::Request.new(self.url + '/capture', 'POST') request.parameters.merge!(params) response = request.run update(response) end |
#charge ⇒ Object
15 16 17 |
# File 'lib/pagarme/transaction.rb', line 15 def charge create end |