class Bunq::Avatars

Public Class Methods

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

Public Instance Methods

create(attachment_public_uuid) click to toggle source
# File lib/bunq/avatars.rb, line 11
def create(attachment_public_uuid)
  @resource.with_session { @resource.post({attachment_public_uuid: attachment_public_uuid}) }['Response']
end