Class: FundAmerica::Holding
- Inherits:
-
Object
- Object
- FundAmerica::Holding
- Defined in:
- lib/fund_america/holding.rb
Class Method Summary collapse
-
.details(holding_id) ⇒ Object
End point: apps.fundamerica.com/api/holdings/:id (GET) Usage: FundAmerica::Holding.details(Holding_id) Output: Returns the details of a Holding with matching id.
-
.list ⇒ Object
End point: apps.fundamerica.com/api/holdings Usage: FundAmerica::Holding.list Output: Returns list of holdings.
Class Method Details
.details(holding_id) ⇒ Object
End point: apps.fundamerica.com/api/holdings/:id (GET) Usage: FundAmerica::Holding.details(Holding_id) Output: Returns the details of a Holding with matching id
15 16 17 |
# File 'lib/fund_america/holding.rb', line 15 def details(holding_id) API::request(:get, "holdings/#{holding_id}") end |
.list ⇒ Object
End point: apps.fundamerica.com/api/holdings Usage: FundAmerica::Holding.list Output: Returns list of holdings
8 9 10 |
# File 'lib/fund_america/holding.rb', line 8 def list API::request(:get, 'holdings') end |