Module: Crunchbase::Utilities::SearchEndpoints
- Includes:
- SearchQueryParameters
- Included in:
- Client
- Defined in:
- lib/crunchbase/utilities/search_endpoints.rb
Overview
All Searches API endpoint
Instance Method Summary collapse
-
#recent_updates(args) ⇒ Object
Example to searching organizations.
- #search_funding_rounds(raw_data) ⇒ Object
-
#search_organizations(raw_data) ⇒ Object
For Searches.
- #search_people(raw_data) ⇒ Object
Methods included from SearchQueryParameters
Instance Method Details
#recent_updates(args) ⇒ Object
Example to searching organizations
scope_name: 'organization',
date: '2020-05-05',
field_ids: %w[name website permalink],
sort: 'desc'
before_id: 'uuid'
after_id: 'uuid'
22 23 24 |
# File 'lib/crunchbase/utilities/search_endpoints.rb', line 22 def recent_updates(args) searches(query_parameters(args), args[:scope_name]).searches end |
#search_funding_rounds(raw_data) ⇒ Object
31 32 33 |
# File 'lib/crunchbase/utilities/search_endpoints.rb', line 31 def search_funding_rounds(raw_data) searches(raw_data, 'funding_round').searches end |
#search_organizations(raw_data) ⇒ Object
For Searches
27 28 29 |
# File 'lib/crunchbase/utilities/search_endpoints.rb', line 27 def search_organizations(raw_data) searches(raw_data, 'organization').searches end |
#search_people(raw_data) ⇒ Object
35 36 37 |
# File 'lib/crunchbase/utilities/search_endpoints.rb', line 35 def search_people(raw_data) searches(raw_data, 'person').searches end |