class Arbetsformedlingen::API::WSOccupationClient

WsOccupation API client @see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx

Constants

NAMESPACE

Namespace

SERVICE_URL

Service URL

Public Class Methods

new() click to toggle source

Initialize client

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 17
def initialize
  super(SERVICE_URL, NAMESPACE)
end

Public Instance Methods

article(id) click to toggle source

Returns article @return [Response] the response @see Response @see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx?op=GetArticle

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 96
def article(id)
  client_request('GetArticle', args: { articleId: id })
end
education_connections() click to toggle source

Returns education connections @return [Response] the response @see Response @see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx?op=LoadAllEducationConnections

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 80
def education_connections
  client_request('LoadAllEducationConnections')
end
find_occupations(name) click to toggle source

Returns occupations @return [Response] the response @see Response @see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx?op=FindOccupation

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 33
def find_occupations(name)
  client_request('FindOccupation', args: { name: name })
end
locale_groups(id) click to toggle source

Returns locale groups @return [Response] the response @see Response @see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx?op=GetLocaleGroups

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 64
def locale_groups(id)
  client_request('GetLocaleGroups', args: { occupationId: id })
end
occupation(id) click to toggle source

Returns occupation with specified id @return [Response] the response @see Response @see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx?op=GetOccupationById

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 25
def occupation(id)
  client_request('GetOccupationById', args: { occupationId: id })
end
occupations() click to toggle source

Returns occupations response @return [Response] the response @see Response @see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx?op=GetAllOccupations

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 41
def occupations
  client_request('GetAllOccupations')
end
occupations_detailed() click to toggle source

Returns occupations detailed @return [Response] the response @see Response

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 56
def occupations_detailed
  client_request('GetAllOccupationsDetailed')
end
occupations_id_and_name() click to toggle source

Returns occupations containing id and name information @return [Response] the response @see Response @see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx?op=LoadAllOccupationIdAndName

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 88
def occupations_id_and_name
  client_request('LoadAllOccupationIdAndName')
end
occupations_short() click to toggle source

Returns occupations short @return [Response] the response @see Response @see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx?op=GetAllOccupationsShort

# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 49
def occupations_short
  client_request('GetAllOccupationsShort')
end