Class: Moov::Models::Components::TransferAuthorization
- Inherits:
-
Object
- Object
- Moov::Models::Components::TransferAuthorization
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/transferauthorization.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(authorization_id:, requested_amount:, authorized_amount:, captured_amount:, capturable_amount:, expires_on: nil) ⇒ TransferAuthorization
constructor
A new instance of TransferAuthorization.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(authorization_id:, requested_amount:, authorized_amount:, captured_amount:, capturable_amount:, expires_on: nil) ⇒ TransferAuthorization
Returns a new instance of TransferAuthorization.
29 30 31 32 33 34 35 36 |
# File 'lib/moov/models/components/transferauthorization.rb', line 29 def initialize(authorization_id:, requested_amount:, authorized_amount:, captured_amount:, capturable_amount:, expires_on: nil) @authorization_id = @requested_amount = requested_amount @authorized_amount = @captured_amount = captured_amount @capturable_amount = capturable_amount @expires_on = expires_on end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/moov/models/components/transferauthorization.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @authorization_id == other. return false unless @requested_amount == other.requested_amount return false unless @authorized_amount == other. return false unless @captured_amount == other.captured_amount return false unless @capturable_amount == other.capturable_amount return false unless @expires_on == other.expires_on true end |