jsb_client 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jsb.rb +19 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69475532a513584af3b4c9348c758924b74510c6
4
- data.tar.gz: 3206b3a0536895461c959a5a747a07ba29c72ff5
3
+ metadata.gz: 3c7e295b56c33eef0a75caa75a22423944c5ac4e
4
+ data.tar.gz: ffce1ec014f2682aaf7f94943e3ebfa06c8da8ce
5
5
  SHA512:
6
- metadata.gz: da2cd17b6989d3ec18755f37834e1f03db024e438e39d851472bb02a93360dd332691032f8f50d3b23371c53e6168fd8abbf4a4c4274615582a2038f733fbb33
7
- data.tar.gz: e0e90c09d9a13957825632f516cd839c965f2d7290070e22460624818550398813f09d354f740fb39b068450045bfaf9c9381bb33b081769006e232945197764
6
+ metadata.gz: 09f02fd6eabb09b422612d77f43649732853563771b6d618f511703c5eb6f0a48edfb30c97913b0746b9dd6b9a4b2563a7bba877ec6724d3566d21bd665c1171
7
+ data.tar.gz: aac27607c4cea50399fe65645b8993f69dbbf0d7244af261c7cbfabda12c59bd05501290c9327418216f258c46cdfacd55c2e6ced7f64a705e345a1800ae3394
data/lib/jsb.rb CHANGED
@@ -55,6 +55,15 @@ class JSB
55
55
  parse(@api["/journals/#{journal_id}/issues"].get(:accept => :json))
56
56
  end
57
57
 
58
+ # Return a specif issue from a journal.
59
+ #
60
+ # Arguments:
61
+ # journal_id: (Integer) id of journal.
62
+ # issue_id: (Integer) id of issue.
63
+ def issues(journal_id, issue_id)
64
+ parse(@api["/journals/#{journal_id}/issues/#{issue_id}"].get(:accept => :json))
65
+ end
66
+
58
67
  # Return a list of articles from a issue.
59
68
  #
60
69
  # Arguments:
@@ -64,6 +73,16 @@ class JSB
64
73
  parse(@api["/journals/#{journal_id}/issues/#{issue_id}/articles"].get(:accept => :json))
65
74
  end
66
75
 
76
+ # Return a list of articles by section from a issue.
77
+ #
78
+ # Arguments:
79
+ # journal_id: (Integer) id of journal.
80
+ # issue_id: (Integer) id of issue.
81
+ # section_id: (Integer) id of section.
82
+ def articles(journal_id, issue_id, section_id)
83
+ parse(@api["/journals/#{journal_id}/issues/#{issue_id}/sections/#{section_id}/articles"].get(:accept => :json))
84
+ end
85
+
67
86
  # Return a specific article.
68
87
  #
69
88
  # Arguments:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsb_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Definity Solutions
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-29 00:00:00.000000000 Z
12
+ date: 2015-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest_client