Class: OAuth::Consumer

Inherits:
Object
  • Object
show all
Includes:
ClientCertificateExtensions
Defined in:
lib/oauth/oauth_consumer.rb

Defined Under Namespace

Modules: ClientCertificateExtensions

Instance Method Summary collapse

Methods included from ClientCertificateExtensions

#http

Instance Method Details

#http_with_ssl_client_certificates(*args) ⇒ Object



19
20
21
22
23
24
# File 'lib/oauth/oauth_consumer.rb', line 19

def http_with_ssl_client_certificates(*args)
  @http ||= http_without_ssl_client_certificates(*args).tap do |http|
    http.cert = options[:ssl_client_cert]
    http.key  = options[:ssl_client_key]
  end
end