class Bunq::Installations

Public Class Methods

new(client) click to toggle source
# File lib/bunq/installations.rb, line 5
def initialize(client)
  @resource = Bunq::Resource.new(client, '/v1/installation')
end

Public Instance Methods

create(public_key) click to toggle source
# File lib/bunq/installations.rb, line 9
def create(public_key)
  fail ArgumentError, 'public_key is required' unless public_key

  @resource.post({client_public_key: public_key}, skip_verify: true)['Response']
end
index() click to toggle source
# File lib/bunq/installations.rb, line 15
def index
  @resource.get['Response']
end