Class: Arbetsformedlingen::API::WSOccupationClient

Inherits:
BaseSOAPClient show all
Defined in:
lib/arbetsformedlingen/api/ws_occupation_client.rb

Overview

WsOccupation API client

Constant Summary collapse

SERVICE_URL =

Service URL

'https://api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx'.freeze
NAMESPACE =

Namespace

'urn:ams.se:wsoccupation'

Instance Attribute Summary

Attributes inherited from BaseSOAPClient

#namespace, #request, #service_url

Instance Method Summary collapse

Methods inherited from BaseSOAPClient

#client_request

Constructor Details

#initializeWSOccupationClient

Initialize client



17
18
19
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 17

def initialize
  super(SERVICE_URL, NAMESPACE)
end

Instance Method Details

#article(id) ⇒ Response

Returns article



96
97
98
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 96

def article(id)
  client_request('GetArticle', args: { articleId: id })
end

#education_connectionsResponse

Returns education connections



80
81
82
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 80

def education_connections
  client_request('LoadAllEducationConnections')
end

#find_occupations(name) ⇒ Response

Returns occupations



33
34
35
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 33

def find_occupations(name)
  client_request('FindOccupation', args: { name: name })
end

#locale_groups(id) ⇒ Response

Returns locale groups



64
65
66
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 64

def locale_groups(id)
  client_request('GetLocaleGroups', args: { occupationId: id })
end

#occupation(id) ⇒ Response

Returns occupation with specified id



25
26
27
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 25

def occupation(id)
  client_request('GetOccupationById', args: { occupationId: id })
end

#occupationsResponse

Returns occupations response



41
42
43
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 41

def occupations
  client_request('GetAllOccupations')
end

#occupations_detailedResponse

Returns occupations detailed

Returns:

See Also:



56
57
58
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 56

def occupations_detailed
  client_request('GetAllOccupationsDetailed')
end

#occupations_id_and_nameResponse

Returns occupations containing id and name information



88
89
90
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 88

def occupations_id_and_name
  client_request('LoadAllOccupationIdAndName')
end

#occupations_shortResponse

Returns occupations short



49
50
51
# 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



72
73
74
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 72

def platsbanken_link(id)
  client_request('GetPlatsbankenLink', args: { localegroupid: id })
end