Class: MxnBanks::Bank
- Inherits:
-
Object
- Object
- MxnBanks::Bank
- Defined in:
- lib/mxn_banks/bank.rb
Instance Attribute Summary collapse
-
#abreviate ⇒ Object
readonly
Returns the value of attribute abreviate.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(args) ⇒ Bank
constructor
A new instance of Bank.
Constructor Details
#initialize(args) ⇒ Bank
Returns a new instance of Bank.
5 6 7 8 9 |
# File 'lib/mxn_banks/bank.rb', line 5 def initialize(args) @name = args[:name] @number = args[:number] @abreviate = args[:abreviate] end |
Instance Attribute Details
#abreviate ⇒ Object (readonly)
Returns the value of attribute abreviate.
3 4 5 |
# File 'lib/mxn_banks/bank.rb', line 3 def abreviate @abreviate end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/mxn_banks/bank.rb', line 3 def name @name end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
3 4 5 |
# File 'lib/mxn_banks/bank.rb', line 3 def number @number end |