zunnit 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zunnit/setup.rb +5 -2
- data/lib/zunnit/version.rb +1 -1
- metadata +1 -1
data/lib/zunnit/setup.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Zunnit
|
2
2
|
extend Utils
|
3
|
-
mattr_accessor :client, :key, :version, :actions
|
3
|
+
mattr_accessor :client, :key, :version, :actions
|
4
4
|
|
5
5
|
# Fixed constants
|
6
6
|
ACTIONS = {
|
@@ -22,7 +22,10 @@ module Zunnit
|
|
22
22
|
def self.setup
|
23
23
|
self.actions = ACTIONS
|
24
24
|
yield self if block_given?
|
25
|
-
self.url ||= "http://#{self.client}.zunnit.com/"
|
26
25
|
self
|
27
26
|
end
|
27
|
+
|
28
|
+
def self.url
|
29
|
+
"http://#{self.client}.zunnit.com/"
|
30
|
+
end
|
28
31
|
end
|
data/lib/zunnit/version.rb
CHANGED