module CreditCardDetector::Data
Constants
- DATA
Public Class Methods
brands()
click to toggle source
# File lib/credit_card_detector/data.rb, line 9 def brands @data ||= raw_data.map { |key, data| Brand.new key, data } end
ids()
click to toggle source
# File lib/credit_card_detector/data.rb, line 13 def ids @ids ||= brands.map(&:id) end
raw_data()
click to toggle source
# File lib/credit_card_detector/data.rb, line 17 def raw_data YAML.load_file DATA end