Class: Rialto::Etl::Extractors::StanfordOrganizations
- Inherits:
-
AbstractStanfordExtractor
- Object
- AbstractStanfordExtractor
- Rialto::Etl::Extractors::StanfordOrganizations
- Defined in:
- lib/rialto/etl/extractors/stanford_organizations.rb
Overview
Stanford CAP API for orgs
Instance Attribute Summary
Attributes inherited from AbstractStanfordExtractor
Instance Method Summary collapse
-
#extract ⇒ Object
Hit an API endpoint and return the results.
Instance Method Details
#extract ⇒ Object
Hit an API endpoint and return the results
11 12 13 14 15 |
# File 'lib/rialto/etl/extractors/stanford_organizations.rb', line 11 def extract client.get('/cap/v1/orgs/stanford?p=1&ps=10').body rescue StandardError => exception puts "Error: #{exception.}" end |