Class: Braintree::Dispute::StatusHistory

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

Returns a new instance of StatusHistory.



11
12
13
14
15
# File 'lib/braintree/dispute/status_history.rb', line 11

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

Instance Attribute Details

#disbursement_dateObject (readonly)

Returns the value of attribute disbursement_date.



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

def disbursement_date
  @disbursement_date
end

#effective_dateObject (readonly)

Returns the value of attribute effective_date.



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

def effective_date
  @effective_date
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



9
10
11
# File 'lib/braintree/dispute/status_history.rb', line 9

def timestamp
  @timestamp
end