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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/noun-project-api/icon.rb +9 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 810e93f2a6007af38536ac99d6d297b8a84419df
4
- data.tar.gz: f672c9976b6425ca47ac49046b86ed52b43dcbd7
3
+ metadata.gz: d494cd57fef4cc0c3215163ecf0c93cee312b3d4
4
+ data.tar.gz: 31ca5d1f5d5d87e7e33ba70e47b4797e17eb72cb
5
5
  SHA512:
6
- metadata.gz: f825fc58d3e1a3a217433488f0c3e91fab753eb05c7241a410690a50af2968b8f0448d5c787d630fb9e86e76155d461c81a336727fbc9cb54dd14af895231a0b
7
- data.tar.gz: 80c91604f12dc4df532f30347efa178abefe40b74962593e67773cf89bb2a11e138ac2a096e1930c8e0e1f1db37e6b1235abf91901e9c7de7ebc0ec151efe299
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noun-project-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadav Shatz