Class: Moov::Models::Components::IssuedCardAuthorizationEvent
- Inherits:
-
Object
- Object
- Moov::Models::Components::IssuedCardAuthorizationEvent
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/issuedcardauthorizationevent.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(event_id:, event_type:, amount:, result:, created_on:) ⇒ IssuedCardAuthorizationEvent
constructor
A new instance of IssuedCardAuthorizationEvent.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(event_id:, event_type:, amount:, result:, created_on:) ⇒ IssuedCardAuthorizationEvent
Returns a new instance of IssuedCardAuthorizationEvent.
28 29 30 31 32 33 34 |
# File 'lib/moov/models/components/issuedcardauthorizationevent.rb', line 28 def initialize(event_id:, event_type:, amount:, result:, created_on:) @event_id = event_id @event_type = event_type @amount = amount @result = result @created_on = created_on end |
Instance Method Details
#==(other) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/moov/models/components/issuedcardauthorizationevent.rb', line 37 def ==(other) return false unless other.is_a? self.class return false unless @event_id == other.event_id return false unless @event_type == other.event_type return false unless @amount == other.amount return false unless @result == other.result return false unless @created_on == other.created_on true end |