Class: Braintree::Dispute::Transaction

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/dispute/transaction.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) ⇒ 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

#amountObject (readonly)

Returns the value of attribute amount.



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

def amount
  @amount
end

#created_atObject (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

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/braintree/dispute/transaction.rb', line 8

def id
  @id
end

#installment_countObject (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_idObject (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_subtypeObject (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_numberObject (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