lib/promisepay/models/user.rb
# Gets company for a user on a marketplace.
#
# @see
#
# @return [Promisepay::Company]
Gets company for a user on a marketplace.
Gets company for a user on a marketplace .
def company
      response = JSON.parse(@client.get("users/#{send(:id)}/companies").body)
      Promisepay::Company.new(@client, response['companies'])
    rescue Promisepay::NotFound
      nil
    end
def company response = JSON . parse ( @client . get ( "users/#{send(:id)}/companies" ) . body ) Promisepay :: Company . new ( @client , response [ 'companies' ] ) rescue Promisepay :: NotFound nil end
Gets company for a user on a marketplace.
Gets company for a user on a marketplace .
None
Promisepay::Company
see
None