Class: Rialto::Etl::Extractors::AbstractStanfordExtractor
- Inherits:
-
Object
- Object
- Rialto::Etl::Extractors::AbstractStanfordExtractor
- Defined in:
- lib/rialto/etl/extractors/abstract_stanford_extractor.rb
Overview
Abstract class hitting Stanford APIs using Stanford authz
Direct Known Subclasses
Instance Attribute Summary collapse
-
#access_token_expiry_time ⇒ Object
readonly
Time at which access token expires (as integer).
Instance Method Summary collapse
-
#extract ⇒ Object
Hit an API endpoint and return the results.
Instance Attribute Details
#access_token_expiry_time ⇒ Object (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
#extract ⇒ Object
Hit an API endpoint and return the results
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 |