Class: BankScrap::Investment

Inherits:
Object
  • Object
show all
Includes:
Utils::Inspectable
Defined in:
lib/bank_scrap/investment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::Inspectable

#inspect

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

#balanceObject

Returns the value of attribute balance.



5
6
7
# File 'lib/bank_scrap/investment.rb', line 5

def balance
  @balance
end

#bankObject

Returns the value of attribute bank.



5
6
7
# File 'lib/bank_scrap/investment.rb', line 5

def bank
  @bank
end

#currencyObject

Returns the value of attribute currency.



5
6
7
# File 'lib/bank_scrap/investment.rb', line 5

def currency
  @currency
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/bank_scrap/investment.rb', line 5

def id
  @id
end

#investmentObject

Returns the value of attribute investment.



5
6
7
# File 'lib/bank_scrap/investment.rb', line 5

def investment
  @investment
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/bank_scrap/investment.rb', line 5

def name
  @name
end