Sha256: c997a4d9b227af64db682ff58427ecdc4fd1f4eed15656c481eac6ce7c8f193a

Contents?: true

Size: 497 Bytes

Versions: 14

Compression:

Stored size: 497 Bytes

Contents

module Bunq
  ##
  # https://doc.bunq.com/api/1/call/certificate-pinned
  class CertificatePinned
    def initialize(parent_resource)
      @resource = parent_resource.append("/certificate-pinned")
    end

    ##
    # https://doc.bunq.com/api/1/call/certificate-pinned/method/post
    def create(pem_certificate)
      @resource.with_session do
        @resource.post({
          certificate_chain: [
            {certificate: pem_certificate}
          ]
        })
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bunq-client-0.7.2 lib/bunq/certificate_pinned.rb
bunq-client-0.7.1 lib/bunq/certificate_pinned.rb
bunq-client-0.7.0 lib/bunq/certificate_pinned.rb
bunq-client-0.6.1 lib/bunq/certificate_pinned.rb
bunq-client-0.6.0 lib/bunq/certificate_pinned.rb
bunq-client-0.5.0 lib/bunq/certificate_pinned.rb
bunq-client-0.4.2 lib/bunq/certificate_pinned.rb
bunq-client-0.4.1 lib/bunq/certificate_pinned.rb
bunq-client-0.4.0 lib/bunq/certificate_pinned.rb
bunq-client-0.3.0 lib/bunq/certificate_pinned.rb
bunq-client-0.2.0 lib/bunq/certificate_pinned.rb
bunq-client-0.1.2 lib/bunq/certificate_pinned.rb
bunq-client-0.1.1 lib/bunq/certificate_pinned.rb
bunq-client-0.1.0 lib/bunq/certificate_pinned.rb