lib/crunchbase/utilities/entity_endpoints.rb in crunchbase4-0.1.1 vs lib/crunchbase/utilities/entity_endpoints.rb in crunchbase4-0.1.2
- old
+ new
@@ -72,9 +72,19 @@
# Lookup PressReference's all card
def press_reference_cards(entity_id)
entities('press_reference', entity_id).fetch_cards
end
+ # Lookup an Ipo or Single card
+ def ipo(entity_id, card_id: nil)
+ lookup_for('ipo', entity_id, card_id)
+ end
+
+ # Lookup Ipo's all card
+ def ipo_cards(entity_id)
+ entities('ipo', entity_id).fetch_cards
+ end
+
private
def entities(entity_type, entity_id)
Crunchbase::Entities::Client.new(entity_id, entity_type)
end