Class: Egg::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/egg/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#currencyObject (readonly)

Returns the value of attribute currency.



6
7
8
# File 'lib/egg/account.rb', line 6

def currency
  @currency
end

#numberObject (readonly)

Returns the value of attribute number.



6
7
8
# File 'lib/egg/account.rb', line 6

def number
  @number
end