lib/crunchbase/utilities/entity_endpoints.rb in crunchbase4-0.1.2 vs lib/crunchbase/utilities/entity_endpoints.rb in crunchbase4-0.1.3

- old
+ new

@@ -28,61 +28,61 @@ def person(entity_id, card_id: nil) lookup_for('person', entity_id, card_id) end # Lookup Person's all cards - def person_cards(entity_id) - entities('person', entity_id).fetch_cards + def person_cards(entity_id, cards: []) + entities('person', entity_id).fetch_cards(cards) end # Lookup a Funding Round or single card def funding_round(entity_id, card_id: nil) lookup_for('funding_round', entity_id, card_id) end # Lookup Funding Round's all cards - def funding_round_cards(entity_id) - entities('funding_round', entity_id).fetch_cards + def funding_round_cards(entity_id, cards: []) + entities('funding_round', entity_id).fetch_cards(cards) end # Lookup an Acquisition or Single card def acquisition(entity_id, card_id: nil) lookup_for('acquisition', entity_id, card_id) end # Lookup Acquisition's all card - def acquisition_cards(entity_id) - entities('acquisition', entity_id).fetch_cards + def acquisition_cards(entity_id, cards: []) + entities('acquisition', entity_id).fetch_cards(cards) end # Lookup an Investment or Single card def investment(entity_id, card_id: nil) lookup_for('investment', entity_id, card_id) end # Lookup Investment's all card - def investment_cards(entity_id) - entities('investment', entity_id).fetch_cards + def investment_cards(entity_id, cards: []) + entities('investment', entity_id).fetch_cards(cards) end # Lookup an PressReference or Single card def press_reference(entity_id, card_id: nil) lookup_for('press_reference', entity_id, card_id) end # Lookup PressReference's all card - def press_reference_cards(entity_id) - entities('press_reference', entity_id).fetch_cards + def press_reference_cards(entity_id, cards: []) + entities('press_reference', entity_id).fetch_cards(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 + def ipo_cards(entity_id, cards: []) + entities('ipo', entity_id).fetch_cards(cards) end private def entities(entity_type, entity_id)