Class: Ravelin::Transaction
- Inherits:
-
RavelinObject
- Object
- RavelinObject
- Ravelin::Transaction
- Defined in:
- lib/ravelin/transaction.rb
Instance Attribute Summary collapse
-
#auth_code ⇒ Object
Returns the value of attribute auth_code.
-
#avs_result_code ⇒ Object
Returns the value of attribute avs_result_code.
-
#credit ⇒ Object
Returns the value of attribute credit.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#custom ⇒ Object
Returns the value of attribute custom.
-
#cvv_result_code ⇒ Object
Returns the value of attribute cvv_result_code.
-
#debit ⇒ Object
Returns the value of attribute debit.
-
#decline_code ⇒ Object
Returns the value of attribute decline_code.
-
#email ⇒ Object
Returns the value of attribute email.
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#gateway_reference ⇒ Object
Returns the value of attribute gateway_reference.
-
#success ⇒ Object
Returns the value of attribute success.
-
#three_d_secure ⇒ Object
Returns the value of attribute three_d_secure.
-
#time ⇒ Object
Returns the value of attribute time.
-
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(params) ⇒ Transaction
constructor
A new instance of Transaction.
Methods inherited from RavelinObject
attr_accessor, attr_required, required_attributes, #serializable_hash, #validate
Constructor Details
#initialize(params) ⇒ Transaction
Returns a new instance of Transaction.
28 29 30 31 32 33 34 35 |
# File 'lib/ravelin/transaction.rb', line 28 def initialize(params) unless params['3ds'].nil? self.three_d_secure = ThreeDSecure.new(params['3ds']) params.delete('3ds') end super(params) end |
Instance Attribute Details
#auth_code ⇒ Object
Returns the value of attribute auth_code.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def auth_code @auth_code end |
#avs_result_code ⇒ Object
Returns the value of attribute avs_result_code.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def avs_result_code @avs_result_code end |
#credit ⇒ Object
Returns the value of attribute credit.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def credit @credit end |
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def currency @currency end |
#custom ⇒ Object
Returns the value of attribute custom.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def custom @custom end |
#cvv_result_code ⇒ Object
Returns the value of attribute cvv_result_code.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def cvv_result_code @cvv_result_code end |
#debit ⇒ Object
Returns the value of attribute debit.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def debit @debit end |
#decline_code ⇒ Object
Returns the value of attribute decline_code.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def decline_code @decline_code end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def email @email end |
#gateway ⇒ Object
Returns the value of attribute gateway.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def gateway @gateway end |
#gateway_reference ⇒ Object
Returns the value of attribute gateway_reference.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def gateway_reference @gateway_reference end |
#success ⇒ Object
Returns the value of attribute success.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def success @success end |
#three_d_secure ⇒ Object
Returns the value of attribute three_d_secure.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def three_d_secure @three_d_secure end |
#time ⇒ Object
Returns the value of attribute time.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def time @time end |
#transaction_id ⇒ Object
Returns the value of attribute transaction_id.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def transaction_id @transaction_id end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/ravelin/transaction.rb', line 3 def type @type end |