Sha256: 45ed4f9f598ddb7d0f1ce663c4407a61a6b70a807b68ad495bbdc0646dc349b4

Contents?: true

Size: 367 Bytes

Versions: 11

Compression:

Stored size: 367 Bytes

Contents

require_relative 'resource'

module Bunq
  class UserPerson
    def initialize(client, id)
      @resource = Bunq::Resource.new(client, "/v1/user-person/#{id}")
    end

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

    def update(attributes)
      @resource.with_session { @resource.put(attributes) }['Response']
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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