Sha256: 17d00baaadd7629a71485ed56394e295966ad8568cf44d3e72b5261d399c7aa3

Contents?: true

Size: 327 Bytes

Versions: 11

Compression:

Stored size: 327 Bytes

Contents

module Bunq
  # https://doc.bunq.com/api/1/call/payment
  class Payment
    def initialize(parent_resource, id)
      @resource = parent_resource.append("/payment/#{id}")
    end

    # https://doc.bunq.com/api/1/call/payment/method/get
    def show
      @resource.with_session { @resource.get }['Response']
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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