Class: Egg::Account
- Inherits:
-
Object
- Object
- Egg::Account
- Defined in:
- lib/egg/account.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(currency, number) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(currency, number) ⇒ Account
Returns a new instance of Account.
3 4 5 |
# File 'lib/egg/account.rb', line 3 def initialize(currency, number) @currency, @number = currency, number end |
Instance Attribute Details
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
6 7 8 |
# File 'lib/egg/account.rb', line 6 def currency @currency end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
6 7 8 |
# File 'lib/egg/account.rb', line 6 def number @number end |