aleph_api 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1352602d9dbe52b7cf03378bfbe1f66f6e44f934
4
- data.tar.gz: 17d52ff31e2de3379085281e86ee9fc958950b89
3
+ metadata.gz: 79cceca2f735f24bc8ecbb93c9f2bd32e9e4edf0
4
+ data.tar.gz: d11c0d028b33dbc9a17dd6f14206823e6c212e0f
5
5
  SHA512:
6
- metadata.gz: 7b2624a832dcdbdaefa6e16c6f0730914103f2b8728db32cc25edb5640ee42a96eeebb7784d3df6d1547810c22207ebfa33192ef4ba5d0ad5541bda6d444a476
7
- data.tar.gz: 5e4aae621978c2501b5995dc23f0d86531ea227e228b0bb594da4379f95be74af01c1b1ffd9643eaf9f2d3140c8ebbaab7dd06be3439414b08d45423b00450e0
6
+ metadata.gz: 816e38e1b56699773b4a44f33bf82e5c634986edaa81c4a735e0745cc7876592d9a1d2a7f07518cee26b9d8090e33676fcbc6b0e5df750d6a14302d93e3ed2a0
7
+ data.tar.gz: 8f5c24c1f221660419494c0bf4fbb2b2507316257310f8e72ee7044989176cae54a77f5bb1a1a71ddecda9b5640b5ff52e7a8f485a04e89261973fada4ae948b
@@ -2,6 +2,7 @@ require_relative "../circulation_actions"
2
2
 
3
3
  class AlephApi::RestfulApiClient::Patron::CirculationActions::Requests
4
4
  require_relative "./requests/holds"
5
+ require_relative "./requests/ill"
5
6
 
6
7
  def initialize(client, patron_id)
7
8
  @client = client
@@ -17,4 +18,8 @@ class AlephApi::RestfulApiClient::Patron::CirculationActions::Requests
17
18
  def holds(hold_id = nil)
18
19
  Holds.new(@client, @patron_id, hold_id)
19
20
  end
21
+
22
+ def ill(ill_id = nil)
23
+ ILL.new(@client, @patron_id, ill_id)
24
+ end
20
25
  end
@@ -0,0 +1,21 @@
1
+ require_relative "../requests"
2
+
3
+ class AlephApi::RestfulApiClient::Patron::CirculationActions::Requests::ILL
4
+ def initialize(client, patron_id, ill_id = nil)
5
+ @client = client
6
+ @ill_id = ill_id
7
+ @patron_id = patron_id
8
+ end
9
+
10
+ def get(options = {})
11
+ if @ill_id
12
+ @client.http(:get, "/patron/#{@patron_id}/circulationActions/requests/ill/#{@ill_id}", options).try do |_response|
13
+ _response.body
14
+ end
15
+ else
16
+ @client.http(:get, "/patron/#{@patron_id}/circulationActions/requests/ill", options).try do |_response|
17
+ _response.body
18
+ end
19
+ end
20
+ end
21
+ end
@@ -1,3 +1,3 @@
1
1
  module AlephApi
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aleph_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Sievers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-11 00:00:00.000000000 Z
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -124,6 +124,7 @@ files:
124
124
  - lib/aleph_api/restful_api_client/patron/circulation_actions/loans.rb
125
125
  - lib/aleph_api/restful_api_client/patron/circulation_actions/requests.rb
126
126
  - lib/aleph_api/restful_api_client/patron/circulation_actions/requests/holds.rb
127
+ - lib/aleph_api/restful_api_client/patron/circulation_actions/requests/ill.rb
127
128
  - lib/aleph_api/restful_api_client/patron/record.rb
128
129
  - lib/aleph_api/restful_api_client/patron/record/holds.rb
129
130
  - lib/aleph_api/restful_api_client/record.rb
@@ -149,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
150
  version: '0'
150
151
  requirements: []
151
152
  rubyforge_project:
152
- rubygems_version: 2.4.8
153
+ rubygems_version: 2.5.1
153
154
  signing_key:
154
155
  specification_version: 4
155
156
  summary: A ruby wrapper for the aleph rest and xservices apis