lib/crunchbase/utilities/entity_endpoints.rb in crunchbase4-0.1.3 vs lib/crunchbase/utilities/entity_endpoints.rb in crunchbase4-0.1.4
- old
+ new
@@ -82,9 +82,29 @@
# Lookup Ipo's all card
def ipo_cards(entity_id, cards: [])
entities('ipo', entity_id).fetch_cards(cards)
end
+ # Lookup an fund or Single card
+ def fund(entity_id, card_id: nil)
+ lookup_for('fund', entity_id, card_id)
+ end
+
+ # Lookup fund's all card
+ def fund_cards(entity_id, cards: [])
+ entities('fund', entity_id).fetch_cards(cards)
+ end
+
+ # Lookup an fund or Single card
+ def ownership(entity_id, card_id: nil)
+ lookup_for('ownership', entity_id, card_id)
+ end
+
+ # Lookup fund's all card
+ def ownership_cards(entity_id, cards: [])
+ entities('ownership', entity_id).fetch_cards(cards)
+ end
+
private
def entities(entity_type, entity_id)
Crunchbase::Entities::Client.new(entity_id, entity_type)
end