quintype-api 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quintype/api/story.rb +8 -0
- data/lib/quintype/api/version.rb +1 -1
- 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: 9128edb00e322219ab517949f9ebd1d15a403ee1
|
4
|
+
data.tar.gz: 3b78ba7abf921b3b65c2e4bca6d4e6997aae3f25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 809815ae8ffc602ce30b21bd06f4a1bf4a6a12b704c08132348565d8115775c70cefc8438d791ce08050ece6f1e55a68ab809913a4454146398c4f790473bfe1
|
7
|
+
data.tar.gz: 449556b3a9cc98ed4d05d6844457eda1d8a001035f81948ab68d018d9ba5d5938a12af74d713e344fdbec3229b58b47c9c0e45921e150440cf9f80dd910becb7
|
data/lib/quintype/api/story.rb
CHANGED
@@ -5,6 +5,14 @@ module Quintype::API
|
|
5
5
|
def each
|
6
6
|
stories.each { |story| yield story }
|
7
7
|
end
|
8
|
+
|
9
|
+
def method_missing(method, *args)
|
10
|
+
stories.send(method, *args)
|
11
|
+
end
|
12
|
+
|
13
|
+
def respond_to?(method)
|
14
|
+
super || stories.respond_to?(method)
|
15
|
+
end
|
8
16
|
|
9
17
|
def location
|
10
18
|
return "section-#{params["section-id"]}" if params["section-id"]
|
data/lib/quintype/api/version.rb
CHANGED