Module: Crunchbase::Utilities::EntityEndpoints

Included in:
Client
Defined in:
lib/crunchbase/utilities/entity_endpoints.rb

Overview

All Entity API endpoints

Instance Method Summary collapse

Instance Method Details

#acquisition(entity_id, **card_args) ⇒ Object

Lookup an Acquisition or Single card



50
51
52
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 50

def acquisition(entity_id, **card_args)
  lookup_for('acquisition', entity_id, card_args)
end

#acquisition_cards(entity_id, cards: []) ⇒ Object

Lookup Acquisition’s all card



55
56
57
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 55

def acquisition_cards(entity_id, cards: [])
  entities('acquisition', entity_id).fetch_cards(cards)
end

#fund(entity_id, **card_args) ⇒ Object

Lookup an fund or Single card



90
91
92
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 90

def fund(entity_id, **card_args)
  lookup_for('fund', entity_id, card_args)
end

#fund_cards(entity_id, cards: []) ⇒ Object

Lookup fund’s all card



95
96
97
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 95

def fund_cards(entity_id, cards: [])
  entities('fund', entity_id).fetch_cards(cards)
end

#funding_round(entity_id, **card_args) ⇒ Object

Lookup a Funding Round or single card



40
41
42
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 40

def funding_round(entity_id, **card_args)
  lookup_for('funding_round', entity_id, card_args)
end

#funding_round_cards(entity_id, cards: []) ⇒ Object

Lookup Funding Round’s all cards



45
46
47
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 45

def funding_round_cards(entity_id, cards: [])
  entities('funding_round', entity_id).fetch_cards(cards)
end

#investment(entity_id, **card_args) ⇒ Object

Lookup an Investment or Single card



60
61
62
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 60

def investment(entity_id, **card_args)
  lookup_for('investment', entity_id, card_args)
end

#investment_cards(entity_id, cards: []) ⇒ Object

Lookup Investment’s all card



65
66
67
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 65

def investment_cards(entity_id, cards: [])
  entities('investment', entity_id).fetch_cards(cards)
end

#ipo(entity_id, **card_args) ⇒ Object

Lookup an Ipo or Single card



80
81
82
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 80

def ipo(entity_id, **card_args)
  lookup_for('ipo', entity_id, card_args)
end

#ipo_cards(entity_id, cards: []) ⇒ Object

Lookup Ipo’s all card



85
86
87
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 85

def ipo_cards(entity_id, cards: [])
  entities('ipo', entity_id).fetch_cards(cards)
end

#organization(entity_id, **card_args) ⇒ Object

Lookup an Organization or single card



20
21
22
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 20

def organization(entity_id, **card_args)
  lookup_for('organization', entity_id, card_args)
end

#organization_cards(entity_id, cards: []) ⇒ Object

Lookup Organization’s all cards



25
26
27
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 25

def organization_cards(entity_id, cards: [])
  entities('organization', entity_id).fetch_cards(cards)
end

#ownership(entity_id, **card_args) ⇒ Object

Lookup an fund or Single card



100
101
102
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 100

def ownership(entity_id, **card_args)
  lookup_for('ownership', entity_id, card_args)
end

#ownership_cards(entity_id, cards: []) ⇒ Object

Lookup fund’s all card



105
106
107
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 105

def ownership_cards(entity_id, cards: [])
  entities('ownership', entity_id).fetch_cards(cards)
end

#person(entity_id, **card_args) ⇒ Object

Lookup a Person or single card



30
31
32
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 30

def person(entity_id, **card_args)
  lookup_for('person', entity_id, card_args)
end

#person_cards(entity_id, cards: []) ⇒ Object

Lookup Person’s all cards



35
36
37
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 35

def person_cards(entity_id, cards: [])
  entities('person', entity_id).fetch_cards(cards)
end

#press_reference(entity_id, **card_args) ⇒ Object

Lookup an PressReference or Single card



70
71
72
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 70

def press_reference(entity_id, **card_args)
  lookup_for('press_reference', entity_id, card_args)
end

#press_reference_cards(entity_id, cards: []) ⇒ Object

Lookup PressReference’s all card



75
76
77
# File 'lib/crunchbase/utilities/entity_endpoints.rb', line 75

def press_reference_cards(entity_id, cards: [])
  entities('press_reference', entity_id).fetch_cards(cards)
end