Sha256: 3bc4773923dc0f225bfc3287f48d0a11c3505fd17e6aed018249a9f7fba69f54
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
require 'active_model' class User include ActiveModel::Validations attr_accessor :credit_card_number, :credit_card_cvv, :credit_card_month, :credit_card_year, :credit_card_owner validate_credit_card_fields number: :credit_card_number, cvv: :credit_card_cvv, month: { field: :credit_card_month }, year: :credit_card_year, owner: :credit_card_owner, providers: [:amex, :visa] def [](key) send(key) end end
Version data entries
4 entries across 4 versions & 1 rubygems