Class: Rialto::Etl::Extractors::AbstractStanfordExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/rialto/etl/extractors/abstract_stanford_extractor.rb

Overview

Abstract class hitting Stanford APIs using Stanford authz

Direct Known Subclasses

StanfordOrganizations, StanfordResearchers

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_token_expiry_timeObject (readonly)

Time at which access token expires (as integer)



14
15
16
# File 'lib/rialto/etl/extractors/abstract_stanford_extractor.rb', line 14

def access_token_expiry_time
  @access_token_expiry_time
end

Instance Method Details

#extractObject

Hit an API endpoint and return the results

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/rialto/etl/extractors/abstract_stanford_extractor.rb', line 17

def extract
  raise NotImplementedError, 'Implement #extract in a child class'
end