Class: BankScrap::Investment
- Inherits:
-
Object
- Object
- BankScrap::Investment
- Includes:
- Utils::Inspectable
- Defined in:
- lib/bank_scrap/investment.rb
Instance Attribute Summary collapse
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#bank ⇒ Object
Returns the value of attribute bank.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#id ⇒ Object
Returns the value of attribute id.
-
#investment ⇒ Object
Returns the value of attribute investment.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Investment
constructor
A new instance of Investment.
Methods included from Utils::Inspectable
Constructor Details
#initialize(params = {}) ⇒ Investment
Returns a new instance of Investment.
7 8 9 |
# File 'lib/bank_scrap/investment.rb', line 7 def initialize(params = {}) params.each { |key,value| send "#{key}=", value } end |
Instance Attribute Details
#balance ⇒ Object
Returns the value of attribute balance.
5 6 7 |
# File 'lib/bank_scrap/investment.rb', line 5 def balance @balance end |
#bank ⇒ Object
Returns the value of attribute bank.
5 6 7 |
# File 'lib/bank_scrap/investment.rb', line 5 def bank @bank end |
#currency ⇒ Object
Returns the value of attribute currency.
5 6 7 |
# File 'lib/bank_scrap/investment.rb', line 5 def currency @currency end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/bank_scrap/investment.rb', line 5 def id @id end |
#investment ⇒ Object
Returns the value of attribute investment.
5 6 7 |
# File 'lib/bank_scrap/investment.rb', line 5 def investment @investment end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/bank_scrap/investment.rb', line 5 def name @name end |