gloriousgadgets 2.9 → 3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gloriousgadgets/version.rb +1 -1
- data/lib/gloriousgadgets.rb +3 -21
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db885a535161ec1de71432ddbf3a6abdf5775f5de09e1a60fc098278785138b4
|
4
|
+
data.tar.gz: ff5c4aaef9606571f8d74b64b437db2ad4573f14a45e769c2b52a8c925aa84ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cc1a571c80446162ef6c6ac984942359c915c7679c806a0d06bbc118c741de9259ab0c68f2130840793d4f5c1e437ec524a7731aef946b3c807368e21833b8f
|
7
|
+
data.tar.gz: a55552f17d720b3af1e7cf6ab130a57a297673531c608353155f98c22e569a7954a789fc76e2aa5dbe6cd2f286b19f7961ed1f1d1c8880591a83827549f8f4d1
|
data/lib/gloriousgadgets.rb
CHANGED
@@ -2,27 +2,9 @@ require "gloriousgadgets/version"
|
|
2
2
|
require 'rest-client'
|
3
3
|
#require 'nokogiri'
|
4
4
|
|
5
|
-
module Gloriousgadgets
|
5
|
+
#module Gloriousgadgets
|
6
6
|
# class Error < StandardError; end
|
7
7
|
# Your code goes here...
|
8
|
-
|
9
|
-
|
10
|
-
if category.empty?
|
11
|
-
raise ArgumentError, 'Please provide a valid category'
|
12
|
-
end
|
13
|
-
|
14
|
-
cat_data = RestClient.get 'http://demo6157752.mockable.io/' + category
|
15
|
-
return cat_data
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
|
20
|
-
def get_average_price_for_category(category)
|
21
|
-
|
22
|
-
return 32.12
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
|
27
|
-
end
|
8
|
+
#end
|
28
9
|
|
10
|
+
print "yeah 2"
|