arbetsformedlingen 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2eac8d60cee1157e1d0f8ff6f436e4af26d9b12761577edaf0593490487dd9e
4
- data.tar.gz: 3026994403965b85670d69d74dd4f828c376bff2342823aad11dacb9c61afcda
3
+ metadata.gz: 82e7c895eea69005d2e958c2f12571a6536b8a44896f6a421c2f45f309aea902
4
+ data.tar.gz: 7cc8792a58d149091cf8e2f5fd4481d09cbdda3f484120c7732d73a0e6f0adb6
5
5
  SHA512:
6
- metadata.gz: 8a9de52e5906afecff66c7cdbba74f0227643a3a99b8efc5ee2890b3eee83d3deeb13957beb5fa2528c0996b2de6e073f719c1d0442fd4897086c61350753ce2
7
- data.tar.gz: 88a9ab08e8e78d7404a47153946aa50ec9ab1e7779d5bf49348bbe2237e69f414f93a3d4b5b4298556a0d0347d12665de2ee45b6e862bd06a31e0809d301f537
6
+ metadata.gz: c7489eed85970fab8eed820938db13d7c644e0f84be0149c8813490620a6a390eeea0a2169a54941f8c6a99d94b61589903fb99b31f1e879f02c1bd09dd12ed8
7
+ data.tar.gz: e2a52e929c49f20a380e033c7d4037f42a02f16f61327a8fb9b6f04c01546ed4292771f35dcd98de68d918f434e5404709411ef0202638632d094fcf940c5865
data/README.md CHANGED
@@ -5,12 +5,15 @@ Arbetsförmedlingen API client (Swedish Public Employment Service).
5
5
  __Features__
6
6
  * Post job ad (a.k.a Direktöverförda annonser)
7
7
  * Platsannons API Client
8
+ * WSOccupation SOAP API Client
8
9
 
9
10
 
10
11
  __Index__
11
12
  * [Installation](#installation)
12
- * [API usage](#api-usage)
13
- * [Post ad usage](#post-ad-usage)
13
+ * [API Client](#api-client)
14
+ * [Post job ad](#post-ad)
15
+ * [WSOccupation Client API](#wsoccupation-client-api)
16
+ * [RDoc](http://www.rubydoc.info/gems/arbetsformedlingen/).
14
17
 
15
18
  ## Installation
16
19
 
@@ -28,7 +31,7 @@ Or install it yourself as:
28
31
 
29
32
  $ gem install arbetsformedlingen
30
33
 
31
- ## API usage
34
+ ## API Client
32
35
 
33
36
  __Create a client:__
34
37
 
@@ -58,7 +61,7 @@ countries.map do |country|
58
61
  end
59
62
  ```
60
63
 
61
- ## Post ad usage
64
+ ## Post ad
62
65
 
63
66
  __Complete example creating a packet__
64
67
 
@@ -171,7 +174,22 @@ client = API::Client.new(locale: 'sv')
171
174
  client.create_ad(packet)
172
175
  ```
173
176
 
174
- ## Arbetsförmedlingen TaxonomyService
177
+ ## WSOccupation API
178
+
179
+ There is some support for Arbetsförmedlingen's `WSOccupation` SOAP API. See [PR#3](https://github.com/buren/arbetsformedlingen/pull/3).
180
+
181
+ ```ruby
182
+ client = Arbetsformedlingen::API::WSOccupationClient.new
183
+ response = client.occupations
184
+ response.xml.css('Name').first.text
185
+ # => "Landskapsarkitekter och landskapsingenjörer"
186
+ ```
187
+
188
+ [WSOccupationClient documentation](http://www.rubydoc.info/gems/arbetsformedlingen/Arbetsformedlingen/API/WSOccupationClient).
189
+
190
+ ## Notes
191
+
192
+ __Arbetsförmedlingen TaxonomyService__
175
193
 
176
194
  Some requests had to be made to Arbetsförmedlingens TaxonomyService in order to fetch the data for the occupation codes. You can find that (plus some more) here :point_down: Postman.
177
195
 
@@ -53,7 +53,7 @@ module Arbetsformedlingen
53
53
  AdResult.build(response.json)
54
54
  end
55
55
 
56
- # Fetch areas from API (areas => landområde/värdsdel)
56
+ # Fetch ads from API (areas => landområde/värdsdel)
57
57
  # @return [MatchningResult] the result.
58
58
  # @see MatchningClient#ads
59
59
  # @see MatchningResult#build
@@ -1,3 +1,3 @@
1
1
  module Arbetsformedlingen
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
@@ -32,6 +32,7 @@ require 'arbetsformedlingen/models/packet'
32
32
 
33
33
  # API Client
34
34
  require 'arbetsformedlingen/api/client'
35
+ require 'arbetsformedlingen/api/ws_occupation_client'
35
36
 
36
37
  module Arbetsformedlingen
37
38
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arbetsformedlingen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Burenstam