Class: SEPA::Account
- Inherits:
-
Object
- Object
- SEPA::Account
- Extended by:
- Converter
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/sepa_king/account.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bic ⇒ Object
Returns the value of attribute bic.
-
#iban ⇒ Object
Returns the value of attribute iban.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Account
constructor
A new instance of Account.
Methods included from Converter
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
#bic ⇒ Object
Returns the value of attribute bic.
7 8 9 |
# File 'lib/sepa_king/account.rb', line 7 def bic @bic end |
#iban ⇒ Object
Returns the value of attribute iban.
7 8 9 |
# File 'lib/sepa_king/account.rb', line 7 def iban @iban end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/sepa_king/account.rb', line 7 def name @name end |