Sha256: a7b0a1a9e6c76e7a5ef3213e7b2d5749e1dcb3259600a83e26e85925690a15d8

Contents?: true

Size: 308 Bytes

Versions: 12

Compression:

Stored size: 308 Bytes

Contents

module FHIR
  class Client
    attr_accessor :oauth_credentials, :auth_info

    def need_to_refresh?
      !!(auth_info&.need_to_refresh? || oauth_credentials&.need_to_refresh?)
    end

    def able_to_refresh?
      !!(auth_info&.able_to_refresh? || oauth_credentials&.able_to_refresh?)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/ext/fhir_client.rb
inferno_core-0.6.0 lib/inferno/ext/fhir_client.rb
inferno_core-0.5.4 lib/inferno/ext/fhir_client.rb
inferno_core-0.5.3 lib/inferno/ext/fhir_client.rb
inferno_core-0.5.2 lib/inferno/ext/fhir_client.rb
inferno_core-0.5.1 lib/inferno/ext/fhir_client.rb
inferno_core-0.5.0 lib/inferno/ext/fhir_client.rb
inferno_core-0.4.44 lib/inferno/ext/fhir_client.rb
inferno_core-0.4.43 lib/inferno/ext/fhir_client.rb
inferno_core-0.4.42 lib/inferno/ext/fhir_client.rb
inferno_core-0.4.41 lib/inferno/ext/fhir_client.rb
inferno_core-0.4.40 lib/inferno/ext/fhir_client.rb