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
Initialize client
Arbetsformedlingen::API::BaseSOAPClient::new
# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 17 def initialize super(SERVICE_URL, NAMESPACE) end
Public Instance Methods
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
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
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
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
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
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
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
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
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
Returns platsbanken link for specified locale group id @return [Response] the response @see Response
@see api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx?op=GetPlatsbankenLink
# File lib/arbetsformedlingen/api/ws_occupation_client.rb, line 72 def platsbanken_link(id) client_request('GetPlatsbankenLink', args: { localegroupid: id }) end