Class: Arbetsformedlingen::API::WSOccupationClient
- Inherits:
-
BaseSOAPClient
- Object
- BaseSOAPClient
- Arbetsformedlingen::API::WSOccupationClient
- 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
-
#article(id) ⇒ Response
Returns article.
-
#education_connections ⇒ Response
Returns education connections.
-
#find_occupations(name) ⇒ Response
Returns occupations.
-
#initialize ⇒ WSOccupationClient
constructor
Initialize client.
-
#locale_groups(id) ⇒ Response
Returns locale groups.
-
#occupation(id) ⇒ Response
Returns occupation with specified id.
-
#occupations ⇒ Response
Returns occupations response.
-
#occupations_detailed ⇒ Response
Returns occupations detailed.
-
#occupations_id_and_name ⇒ Response
Returns occupations containing id and name information.
-
#occupations_short ⇒ Response
Returns occupations short.
-
#platsbanken_link(id) ⇒ Response
Returns platsbanken link for specified locale group id.
Methods inherited from BaseSOAPClient
Constructor Details
#initialize ⇒ WSOccupationClient
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_connections ⇒ Response
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 |
#occupations ⇒ Response
Returns occupations response
41 42 43 |
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 41 def occupations client_request('GetAllOccupations') end |
#occupations_detailed ⇒ Response
Returns occupations detailed
56 57 58 |
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 56 def occupations_detailed client_request('GetAllOccupationsDetailed') end |
#occupations_id_and_name ⇒ Response
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_short ⇒ Response
Returns occupations short
49 50 51 |
# File 'lib/arbetsformedlingen/api/ws_occupation_client.rb', line 49 def occupations_short client_request('GetAllOccupationsShort') end |
#platsbanken_link(id) ⇒ Response
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 |