urbanesia 0.0.1 → 0.0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/urbanesia.rb +6 -3
- metadata +1 -1
data/lib/urbanesia.rb
CHANGED
@@ -1,14 +1,17 @@
|
|
1
|
-
require 'urbanesia/agent'
|
1
|
+
# require 'urbanesia/agent'
|
2
2
|
|
3
|
-
|
3
|
+
module Urbanesia
|
4
4
|
|
5
|
+
mattr_accessor :consumer_key
|
6
|
+
mattr_accessor :consumer_secret
|
7
|
+
mattr_accessor :base_url
|
5
8
|
|
6
9
|
# Outputs either the key or the secret depending on the input
|
7
10
|
#
|
8
11
|
# @param [Symbol] input variable to be printed, ':key' or any other value
|
9
12
|
# @return [String] The printed variable
|
10
13
|
def self.hi(input = :key)
|
11
|
-
agent = Agent.new(
|
14
|
+
agent = Agent.new(@@consumer_key, @@consumer_secret, @@base_url)
|
12
15
|
p agent.hi(input)
|
13
16
|
end
|
14
17
|
end
|