class Braintree::Transaction::Installment

Attributes

actual_disbursement_date[R]
adjustments[R]
amount[R]
id[R]
projected_disbursement_date[R]

Public Class Methods

new(attributes) click to toggle source
# File lib/braintree/transaction/installment.rb, line 12
def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
  @amount = Util.to_big_decimal(amount)
  adjustments.map! { |attrs| Adjustment.new(attrs) } if adjustments
end

Public Instance Methods

inspect() click to toggle source
# File lib/braintree/transaction/installment.rb, line 18
def inspect
  attrs = [:id, :amount, :projected_disbursement_date, :actual_disbursement_date, :adjustments]
  formatted_attrs = attrs.map do |attr|
    "#{attr}: #{send(attr).inspect}"
  end

  "#<#{formatted_attrs.join(", ")}>"
end