Class: Moov::Models::Components::CardVerification
- Inherits:
-
Object
- Object
- Moov::Models::Components::CardVerification
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/cardverification.rb
Overview
The results of submitting cardholder data to a card network for verification.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(cvv:, address_line1:, postal_code:, account_name: nil) ⇒ CardVerification
constructor
A new instance of CardVerification.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(cvv:, address_line1:, postal_code:, account_name: nil) ⇒ CardVerification
Returns a new instance of CardVerification.
26 27 28 29 30 31 |
# File 'lib/moov/models/components/cardverification.rb', line 26 def initialize(cvv:, address_line1:, postal_code:, account_name: nil) @cvv = cvv @address_line1 = address_line1 @postal_code = postal_code @account_name = account_name end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/moov/models/components/cardverification.rb', line 34 def ==(other) return false unless other.is_a? self.class return false unless @cvv == other.cvv return false unless @address_line1 == other.address_line1 return false unless @postal_code == other.postal_code return false unless @account_name == other.account_name true end |