Sha256: 742232870faf4b6ae78446f432c52cbb2521de489851a7179664c6e353a5d1b4

Contents?: true

Size: 515 Bytes

Versions: 8

Compression:

Stored size: 515 Bytes

Contents

module Braintree
  class Dispute
    class StatusHistory
      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

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/dispute/status_history.rb
braintree-4.22.0 lib/braintree/dispute/status_history.rb
braintree-4.21.0 lib/braintree/dispute/status_history.rb
braintree-4.20.0 lib/braintree/dispute/status_history.rb
braintree-4.19.0 lib/braintree/dispute/status_history.rb
braintree-4.18.0 lib/braintree/dispute/status_history.rb
braintree-4.17.0 lib/braintree/dispute/status_history.rb
braintree-4.16.0 lib/braintree/dispute/status_history.rb