Class: OmniauthOpenidFederation::Federation::EntityStatementFetcher::Base
- Inherits:
-
Object
- Object
- OmniauthOpenidFederation::Federation::EntityStatementFetcher::Base
- Defined in:
- lib/omniauth_openid_federation/federation/entity_statement_fetcher.rb
Overview
Base class for entity statement fetchers Subclasses must implement #fetch_entity_statement
Direct Known Subclasses
Instance Method Summary collapse
-
#entity_statement ⇒ EntityStatement
Get the entity statement (cached).
-
#reload! ⇒ void
Reload the entity statement (clear cache).
Instance Method Details
#entity_statement ⇒ EntityStatement
Get the entity statement (cached)
21 22 23 24 25 26 |
# File 'lib/omniauth_openid_federation/federation/entity_statement_fetcher.rb', line 21 def entity_statement @entity_statement ||= begin content = fetch_entity_statement EntityStatement.new(content) end end |
#reload! ⇒ void
This method returns an undefined value.
Reload the entity statement (clear cache)
31 32 33 |
# File 'lib/omniauth_openid_federation/federation/entity_statement_fetcher.rb', line 31 def reload! @entity_statement = nil end |