Class: Moov::Models::Components::CardMetadata
- Inherits:
-
Object
- Object
- Moov::Models::Components::CardMetadata
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/cardmetadata.rb
Overview
Metadata describing a card.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(bin:, brand:, card_type:, card_category: nil, commercial: nil, regulated: nil, issuer: nil, issuer_country: nil, issuer_phone: nil, issuer_url: nil, domestic_pull_from_card: nil, domestic_push_to_card: nil) ⇒ CardMetadata
constructor
A new instance of CardMetadata.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(bin:, brand:, card_type:, card_category: nil, commercial: nil, regulated: nil, issuer: nil, issuer_country: nil, issuer_phone: nil, issuer_url: nil, domestic_pull_from_card: nil, domestic_push_to_card: nil) ⇒ CardMetadata
Returns a new instance of CardMetadata.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/moov/models/components/cardmetadata.rb', line 44 def initialize(bin:, brand:, card_type:, card_category: nil, commercial: nil, regulated: nil, issuer: nil, issuer_country: nil, issuer_phone: nil, issuer_url: nil, domestic_pull_from_card: nil, domestic_push_to_card: nil) @bin = bin @brand = brand @card_type = card_type @card_category = card_category @commercial = commercial @regulated = regulated @issuer = issuer @issuer_country = issuer_country @issuer_phone = issuer_phone @issuer_url = issuer_url @domestic_pull_from_card = domestic_pull_from_card @domestic_push_to_card = domestic_push_to_card end |
Instance Method Details
#==(other) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/moov/models/components/cardmetadata.rb', line 60 def ==(other) return false unless other.is_a? self.class return false unless @bin == other.bin return false unless @brand == other.brand return false unless @card_type == other.card_type return false unless @card_category == other.card_category return false unless @commercial == other.commercial return false unless @regulated == other.regulated return false unless @issuer == other.issuer return false unless @issuer_country == other.issuer_country return false unless @issuer_phone == other.issuer_phone return false unless @issuer_url == other.issuer_url return false unless @domestic_pull_from_card == other.domestic_pull_from_card return false unless @domestic_push_to_card == other.domestic_push_to_card true end |