Class: Braintree::Dispute::Transaction
- Inherits:
-
Object
- Object
- Braintree::Dispute::Transaction
- Includes:
- BaseModule
- Defined in:
- lib/braintree/dispute/transaction.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#installment_count ⇒ Object
readonly
Returns the value of attribute installment_count.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#payment_instrument_subtype ⇒ Object
readonly
Returns the value of attribute payment_instrument_subtype.
-
#purchase_order_number ⇒ Object
readonly
Returns the value of attribute purchase_order_number.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Transaction
constructor
A new instance of Transaction.
Methods included from BaseModule
Methods included from BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(attributes) ⇒ Transaction
Returns a new instance of Transaction.
14 15 16 17 |
# File 'lib/braintree/dispute/transaction.rb', line 14 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? @amount = Util.to_big_decimal(amount) end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
6 7 8 |
# File 'lib/braintree/dispute/transaction.rb', line 6 def amount @amount end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/braintree/dispute/transaction.rb', line 7 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/braintree/dispute/transaction.rb', line 8 def id @id end |
#installment_count ⇒ Object (readonly)
Returns the value of attribute installment_count.
9 10 11 |
# File 'lib/braintree/dispute/transaction.rb', line 9 def installment_count @installment_count end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
10 11 12 |
# File 'lib/braintree/dispute/transaction.rb', line 10 def order_id @order_id end |
#payment_instrument_subtype ⇒ Object (readonly)
Returns the value of attribute payment_instrument_subtype.
12 13 14 |
# File 'lib/braintree/dispute/transaction.rb', line 12 def payment_instrument_subtype @payment_instrument_subtype end |
#purchase_order_number ⇒ Object (readonly)
Returns the value of attribute purchase_order_number.
11 12 13 |
# File 'lib/braintree/dispute/transaction.rb', line 11 def purchase_order_number @purchase_order_number end |