urbanesia 0.0.1.2 → 0.0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/urbanesia.rb +1 -1
- data/lib/urbanesia/agent.rb +28 -0
- metadata +2 -1
data/lib/urbanesia.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
module Urbanesia
|
2
|
+
|
3
|
+
class Agent
|
4
|
+
|
5
|
+
def initialize(consumer_key, consumer_secret, base_url)
|
6
|
+
|
7
|
+
raise ArgumentError, "Missing Consumer Key" if consumer_key.nil? or consumer_key == 0
|
8
|
+
@consumer_key = consumer_key
|
9
|
+
|
10
|
+
raise ArgumentError, "Missing Consumer Secret" if consumer_secret.nil? or consumer_secret == 0
|
11
|
+
@consumer_secret = consumer_secret
|
12
|
+
|
13
|
+
@base_url = base_url || "http://api1.urbanesia.com/"
|
14
|
+
end
|
15
|
+
|
16
|
+
def hi(output)
|
17
|
+
p @base_url
|
18
|
+
case output
|
19
|
+
when :key
|
20
|
+
@consumer_key
|
21
|
+
else
|
22
|
+
@consumer_secret
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: urbanesia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -35,6 +35,7 @@ extensions: []
|
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
37
|
- lib/urbanesia.rb
|
38
|
+
- lib/urbanesia/agent.rb
|
38
39
|
homepage: http://rubygems.org/gems/urbanesia
|
39
40
|
licenses: []
|
40
41
|
post_install_message:
|