Class: Ifqar::Fund

Inherits:
Object
  • Object
show all
Defined in:
lib/ifqar/fund.rb

Overview

Fund represents an Investment Fund

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type) ⇒ Fund

Returns a new instance of Fund.



6
7
8
9
# File 'lib/ifqar/fund.rb', line 6

def initialize(name, type)
  @name = name
  @type = type
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/ifqar/fund.rb', line 4

def name
  @name
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/ifqar/fund.rb', line 4

def type
  @type
end