Class: Braintree::Dispute::TransactionDetails
- Inherits:
-
Object
- Object
- Braintree::Dispute::TransactionDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/dispute/transaction_details.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ TransactionDetails
constructor
A new instance of TransactionDetails.
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) ⇒ TransactionDetails
Returns a new instance of TransactionDetails.
9 10 11 12 |
# File 'lib/braintree/dispute/transaction_details.rb', line 9 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_details.rb', line 6 def amount @amount end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/braintree/dispute/transaction_details.rb', line 7 def id @id end |