Class: FHIR::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/inferno/ext/fhir_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#auth_infoObject

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_credentialsObject

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

Returns:

  • (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

Returns:

  • (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