lib/zunnit/setup.rb in zunnit-0.4.0 vs lib/zunnit/setup.rb in zunnit-0.4.1
- old
+ new
@@ -1,8 +1,8 @@
module Zunnit
extend Utils
- mattr_accessor :client, :key, :version, :actions, :url
+ mattr_accessor :client, :key, :version, :actions
# Fixed constants
ACTIONS = {
:related_items => "/related/items",
:recommendation_items_for_user => "/recommendation/items/for_user",
@@ -20,9 +20,12 @@
}
def self.setup
self.actions = ACTIONS
yield self if block_given?
- self.url ||= "http://#{self.client}.zunnit.com/"
self
+ end
+
+ def self.url
+ "http://#{self.client}.zunnit.com/"
end
end