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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jsb.rb +9 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64f28829566199f8d0d4792613309a8913fddc18
4
- data.tar.gz: 39556a7e36a4ef9fad17cb9b78e88f4082e19229
3
+ metadata.gz: 923569b27228b57202340f605f0c00612381ed4a
4
+ data.tar.gz: ad7e77a008e73ad287eda9e80ae877fe563fd560
5
5
  SHA512:
6
- metadata.gz: 4a37093592a8c458f0119694dfd6d3322d7859f9485d4782e7bb062e73aec6e7aba631d6c83bd11588b195e390132d6e866a50f06dfa2034066885257c047bec
7
- data.tar.gz: 8198958ea071f592d0a4727350e3ac95d6b9beae6afcf29969c6c922bd6255ce8cfdbf85c131d36789ff6e8af8ac6efbb330e45f71f3b4b1d728683395ab6470
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:
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.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Definity Solutions