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:) ⇒ 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:) ⇒ AsyncCreatedRefund
Returns a new instance of AsyncCreatedRefund.
24 25 26 27 28 |
# File 'lib/moov/models/components/asynccreatedrefund.rb', line 24 def initialize(refund_id:, created_on:, amount:) @refund_id = refund_id @created_on = created_on @amount = amount end |
Instance Method Details
#==(other) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/moov/models/components/asynccreatedrefund.rb', line 31 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 true end |