noun-project-api 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/noun-project-api/icon.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: d494cd57fef4cc0c3215163ecf0c93cee312b3d4
|
4
|
+
data.tar.gz: 31ca5d1f5d5d87e7e33ba70e47b4797e17eb72cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df1bb2000d8dfb14a1f8e23bb7864054e9fd0e0b1b153308a0bd1b36ae7da784966107fc1179ec806b8c603553d76b61cbabe5ee0ec32e7d02bd9e851ed7163b
|
7
|
+
data.tar.gz: 7260f3e71496bd464ad611e64e2e5d7430a3b687a0bc7e65040e754f002c7bc7e443ae1676da3eacd4a11e13b74484c57b7f32e44dc7c7ee1a5cb1f2ae889b22
|
@@ -34,5 +34,14 @@ module NounProjectApi
|
|
34
34
|
original_hash["preview_url_#{size}"]
|
35
35
|
end
|
36
36
|
end
|
37
|
+
|
38
|
+
def to_json
|
39
|
+
JSON.dump({
|
40
|
+
id: id,
|
41
|
+
preview_url_200: preview_url(PREVIEW_SIZE_200),
|
42
|
+
preview_url_84: preview_url(PREVIEW_SIZE_84),
|
43
|
+
preview_url_42: preview_url(PREVIEW_SIZE_42)
|
44
|
+
})
|
45
|
+
end
|
37
46
|
end
|
38
47
|
end
|