jsb_client 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsb.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 923569b27228b57202340f605f0c00612381ed4a
|
4
|
+
data.tar.gz: ad7e77a008e73ad287eda9e80ae877fe563fd560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e62929c88fc52de8d4e4387baf381161c35559564b4911f983b420b3f2a2fe3a62c8929fc27dbb40be0bc58186d992f78bf5b26842a91209923d5296081e64be
|
7
|
+
data.tar.gz: 3bb43650fb916454957f2ca904253dc927f17888945459101b3bf4d92899cf6078aeb4888c7d3435e1c6b60fa3b11b2d43ce909ab93c891afa3d38b6205dad25
|
data/lib/jsb.rb
CHANGED
@@ -64,6 +64,15 @@ class JSB
|
|
64
64
|
parse(@api["/journals/#{journal_id}/issues/#{issue_id}"].get(:accept => :json))
|
65
65
|
end
|
66
66
|
|
67
|
+
# Return a list of sections from a issue.
|
68
|
+
#
|
69
|
+
# Arguments:
|
70
|
+
# journal_id: (Integer) id of journal.
|
71
|
+
# issue_id: (Integer) id of issue.
|
72
|
+
def sections(journal_id, issue_id)
|
73
|
+
parse(@api["/journals/#{journal_id}/issues/#{issue_id}/sections"].get(:accept => :json))
|
74
|
+
end
|
75
|
+
|
67
76
|
# Return a list of articles from a issue.
|
68
77
|
#
|
69
78
|
# Arguments:
|