Sha256: fb9ac025a07d527f57ecfe97a4407c5c7f4d385a8efc9236c3d9797638df06d8

Contents?: true

Size: 416 Bytes

Versions: 14

Compression:

Stored size: 416 Bytes

Contents

require_relative 'resource'
require_relative 'draft_share_invite_bank'

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

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

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