Class: SEPA::Account

Inherits:
Object
  • Object
show all
Extended by:
Converter
Includes:
ActiveModel::Validations
Defined in:
lib/sepa_king/account.rb

Direct Known Subclasses

CreditorAccount, DebtorAccount

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Converter

convert

Constructor Details

#initialize(attributes = {}) ⇒ Account

Returns a new instance of Account.


13
14
15
16
17
# File 'lib/sepa_king/account.rb', line 13

def initialize(attributes = {})
  attributes.each do |name, value|
    public_send("#{name}=", value)
  end
end

Instance Attribute Details

#bicObject

Returns the value of attribute bic.


7
8
9
# File 'lib/sepa_king/account.rb', line 7

def bic
  @bic
end

#ibanObject

Returns the value of attribute iban.


7
8
9
# File 'lib/sepa_king/account.rb', line 7

def iban
  @iban
end

#nameObject

Returns the value of attribute name.


7
8
9
# File 'lib/sepa_king/account.rb', line 7

def name
  @name
end