vidsy-data-api 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81da40968b7e2b76beb6839d4af69fc4d85a16df
4
- data.tar.gz: bef7a0e5a03f6c6746e3b70e9cae12e3c0542b6c
3
+ metadata.gz: 82f8de5242d0bfcbeba4993e3202fe13cdf0db3e
4
+ data.tar.gz: 496dc630427a3a25a2300934ad0449c1b629345f
5
5
  SHA512:
6
- metadata.gz: 344748437ff4ac3a5d6dd156b54d1cc45533907c7ffa811031a454fcce3860b422c6e0dae572add67798b97ea4a25261cbade1277520f22231966b3e8e25aad5
7
- data.tar.gz: ddccc7fafd36c67339255e56e935b2cc1028008d9fa75322fcc9a24ae101c517962f8aca4c669cd05660fb6ad2a2b91d1fb2551acdf5dda2729fce862de90375
6
+ metadata.gz: ebd28d8a9e730722c8a0024dd143ea96bc0da4c16fb5437b86b23cb824a844f7342b1e95bd124c4e199564459c11b87fd2906d4515da6158a51f4985dcf6745a
7
+ data.tar.gz: 47668fa44833755573fdf0c594846609a5799664dee757f63827ba5aa76a6d7f208c2c77b1697adf2765858822b0b2f52eda438829b5149ef6d30adb442e70e5
@@ -13,6 +13,10 @@ module Vidsy
13
13
  new.all
14
14
  end
15
15
 
16
+ def self.find(id)
17
+ new.find id
18
+ end
19
+
16
20
  def all
17
21
  client.get "#{routes.brands}"
18
22
  end
@@ -22,6 +26,10 @@ module Vidsy
22
26
  client.get "#{routes.brand}/#{id}/#{routes.challenges}"
23
27
  end
24
28
 
29
+ def find(id)
30
+ client.get "#{routes.brand}/#{id}"
31
+ end
32
+
25
33
  private
26
34
 
27
35
  attr_reader :id
@@ -1,7 +1,7 @@
1
1
  module Vidsy
2
2
  module Data
3
3
  module API
4
- VERSION = "0.4.1"
4
+ VERSION = "0.5.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidsy-data-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Revett