Sha256: 544d6437e37bb09aa85318cf2f8beb3f0de397c5dda3553631b13af5aef9c4d0

Contents?: true

Size: 525 Bytes

Versions: 21

Compression:

Stored size: 525 Bytes

Contents

module Braintree
  class Dispute
    class StatusHistory # :nodoc:
      include BaseModule

      attr_reader :disbursement_date
      attr_reader :effective_date
      attr_reader :status
      attr_reader :timestamp

      def initialize(attributes)
        set_instance_variables_from_hash attributes unless attributes.nil?
        @disbursement_date = Date.parse(disbursement_date) unless disbursement_date.nil?
        @effective_date = Date.parse(effective_date) unless effective_date.nil?
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
braintree-3.0.1 lib/braintree/dispute/status_history.rb