Class: Braintree::Dispute::StatusHistory
- Inherits:
-
Object
- Object
- Braintree::Dispute::StatusHistory
- Includes:
- BaseModule
- Defined in:
- lib/braintree/dispute/status_history.rb
Instance Attribute Summary collapse
-
#disbursement_date ⇒ Object
readonly
Returns the value of attribute disbursement_date.
-
#effective_date ⇒ Object
readonly
Returns the value of attribute effective_date.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ StatusHistory
constructor
A new instance of StatusHistory.
Methods included from BaseModule
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_date ⇒ Object (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_date ⇒ Object (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 |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/braintree/dispute/status_history.rb', line 8 def status @status end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
9 10 11 |
# File 'lib/braintree/dispute/status_history.rb', line 9 def @timestamp end |