Class: Braintree::Dispute::TransactionDetails

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/dispute/transaction_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

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

#amountObject (readonly)

Returns the value of attribute amount.



6
7
8
# File 'lib/braintree/dispute/transaction_details.rb', line 6

def amount
  @amount
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/braintree/dispute/transaction_details.rb', line 7

def id
  @id
end