Class: PagarMe::TransactionCommon
- Inherits:
-
Model
- Object
- PagarMeObject
- Model
- PagarMe::TransactionCommon
- Defined in:
- lib/pagarme/transaction_common.rb
Direct Known Subclasses
Constant Summary
Constants inherited from PagarMeObject
Instance Attribute Summary
Attributes inherited from PagarMeObject
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(response = {}) ⇒ TransactionCommon
constructor
A new instance of TransactionCommon.
- #save ⇒ Object
Methods inherited from Model
all, class_name, create, extract_page_count_or_params, find_by, find_by_id, underscored_class_name, url, #url
Methods inherited from PagarMeObject
#==, #[]=, convert, #empty?, #respond_to?, #to_hash, #to_s, #unsaved_attributes
Constructor Details
#initialize(response = {}) ⇒ TransactionCommon
Returns a new instance of TransactionCommon.
4 5 6 7 8 9 10 |
# File 'lib/pagarme/transaction_common.rb', line 4 def initialize(response = {}) super(response) self.payment_method ||= 'credit_card' self.installments ||= 1 self.status ||= 'local' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PagarMe::PagarMeObject