Sha256: 864c9fdc759c160fc02b190f3f44d1e3a3d5d6a662225c6193389872ddf75bf7

Contents?: true

Size: 330 Bytes

Versions: 11

Compression:

Stored size: 330 Bytes

Contents

module Bunq
  class Card
    def initialize(parent_resource, id)
      @resource = parent_resource.append("/card/#{id}")
    end

    def show
      @resource.with_session { @resource.get }['Response']
    end

    def update(card)
      @resource.with_session { @resource.put(card, encrypt: true) }['Response']
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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