Class: Rialto::Etl::Extractors::StanfordOrganizations

Inherits:
AbstractStanfordExtractor show all
Defined in:
lib/rialto/etl/extractors/stanford_organizations.rb

Overview

Stanford CAP API for orgs

Instance Attribute Summary

Attributes inherited from AbstractStanfordExtractor

#access_token_expiry_time

Instance Method Summary collapse

Instance Method Details

#extractObject

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.message}"
end