Class: Moov::Models::Components::AsyncCreatedRefund
- Inherits:
-
Object
- Object
- Moov::Models::Components::AsyncCreatedRefund
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/asynccreatedrefund.rb
Overview
Asynchronous refund response
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(refund_id:, created_on:, amount:, amount_details: nil) ⇒ AsyncCreatedRefund
constructor
A new instance of AsyncCreatedRefund.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(refund_id:, created_on:, amount:, amount_details: nil) ⇒ AsyncCreatedRefund
Returns a new instance of AsyncCreatedRefund.
25 26 27 28 29 30 |
# File 'lib/moov/models/components/asynccreatedrefund.rb', line 25 def initialize(refund_id:, created_on:, amount:, amount_details: nil) @refund_id = refund_id @created_on = created_on @amount = amount @amount_details = amount_details end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/moov/models/components/asynccreatedrefund.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @refund_id == other.refund_id return false unless @created_on == other.created_on return false unless @amount == other.amount return false unless @amount_details == other.amount_details true end |