Sha256: 486a09de0a965a000804ec33c3849b1dac1f1bfde2aef224927803960dcfc4f1
Contents?: true
Size: 407 Bytes
Versions: 4
Compression:
Stored size: 407 Bytes
Contents
# encoding: utf-8 module SEPA class Account include ActiveModel::Validations extend Converter attr_accessor :name, :iban, :bic convert :name, to: :text validates_length_of :name, within: 1..70 validates_with BICValidator, IBANValidator def initialize(attributes = {}) attributes.each do |name, value| public_send("#{name}=", value) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sepa_king-0.8.0 | lib/sepa_king/account.rb |
sepa_king-0.7.0 | lib/sepa_king/account.rb |
sepa_king-0.6.0 | lib/sepa_king/account.rb |
sepa_king-0.5.0 | lib/sepa_king/account.rb |