Class: Moov::Models::Components::RefundCardDetails
- Inherits:
-
Object
- Object
- Moov::Models::Components::RefundCardDetails
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/refundcarddetails.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(status:, failure_code: nil, initiated_on: nil, confirmed_on: nil, settled_on: nil, failed_on: nil, completed_on: nil) ⇒ RefundCardDetails
constructor
A new instance of RefundCardDetails.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(status:, failure_code: nil, initiated_on: nil, confirmed_on: nil, settled_on: nil, failed_on: nil, completed_on: nil) ⇒ RefundCardDetails
Returns a new instance of RefundCardDetails.
32 33 34 35 36 37 38 39 40 |
# File 'lib/moov/models/components/refundcarddetails.rb', line 32 def initialize(status:, failure_code: nil, initiated_on: nil, confirmed_on: nil, settled_on: nil, failed_on: nil, completed_on: nil) @status = status @failure_code = failure_code @initiated_on = initiated_on @confirmed_on = confirmed_on @settled_on = settled_on @failed_on = failed_on @completed_on = completed_on end |
Instance Method Details
#==(other) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/moov/models/components/refundcarddetails.rb', line 43 def ==(other) return false unless other.is_a? self.class return false unless @status == other.status return false unless @failure_code == other.failure_code return false unless @initiated_on == other.initiated_on return false unless @confirmed_on == other.confirmed_on return false unless @settled_on == other.settled_on return false unless @failed_on == other.failed_on return false unless @completed_on == other.completed_on true end |