Class: FHIR::Client
- Inherits:
-
Object
- Object
- FHIR::Client
- Defined in:
- lib/inferno/ext/fhir_client.rb
Instance Attribute Summary collapse
-
#auth_info ⇒ Object
Returns the value of attribute auth_info.
-
#oauth_credentials ⇒ Object
Returns the value of attribute oauth_credentials.
Instance Method Summary collapse
Instance Attribute Details
#auth_info ⇒ Object
Returns the value of attribute auth_info.
3 4 5 |
# File 'lib/inferno/ext/fhir_client.rb', line 3 def auth_info @auth_info end |
#oauth_credentials ⇒ Object
Returns the value of attribute oauth_credentials.
3 4 5 |
# File 'lib/inferno/ext/fhir_client.rb', line 3 def oauth_credentials @oauth_credentials end |
Instance Method Details
#able_to_refresh? ⇒ Boolean
9 10 11 |
# File 'lib/inferno/ext/fhir_client.rb', line 9 def able_to_refresh? !!(auth_info&.able_to_refresh? || oauth_credentials&.able_to_refresh?) end |
#need_to_refresh? ⇒ Boolean
5 6 7 |
# File 'lib/inferno/ext/fhir_client.rb', line 5 def need_to_refresh? !!(auth_info&.need_to_refresh? || oauth_credentials&.need_to_refresh?) end |