class BankAccountTools::Contact
Attributes
bic[R]
iban[R]
Public Class Methods
new(iban, bic)
click to toggle source
# File lib/bank_account_tools/contact.rb, line 8 def initialize(iban, bic) self.iban = iban self.bic = bic end
Public Instance Methods
bic=(value)
click to toggle source
# File lib/bank_account_tools/contact.rb, line 17 def bic=(value) @bic = BIC.new(value) end
iban=(value)
click to toggle source
# File lib/bank_account_tools/contact.rb, line 13 def iban=(value) @iban = IBAN.new(value) end
to_a()
click to toggle source
# File lib/bank_account_tools/contact.rb, line 29 def to_a to_h.values end
to_h()
click to toggle source
# File lib/bank_account_tools/contact.rb, line 25 def to_h { iban: iban.to_s, bic: bic.to_s } end
valid?()
click to toggle source
# File lib/bank_account_tools/contact.rb, line 21 def valid? iban.valid? && bic.valid? end