lib/ruby_skynet/service.rb in ruby_skynet-0.4.0.pre2 vs lib/ruby_skynet/service.rb in ruby_skynet-0.4.0

- old
+ new

@@ -27,30 +27,26 @@ module ClassMethods # Name of this service to Register with Skynet # Default: class name def service_name - @@service_name ||= name.gsub('::', '.') + @service_name ||= name.gsub('::', '.') end def service_name=(service_name) - @@service_name = service_name + @service_name = service_name end # Version of this service to register with Skynet, defaults to 1 # Default: 1 def service_version - @@service_version ||= 1 + @service_version ||= 1 end def service_version=(service_version) - @@service_version = service_version + @service_version = service_version end - # Key by which this service is known in the doozer registry - def service_key - "/services/#{service_name}/#{service_version}/#{Server.region}/#{Server.hostname}/#{Server.port}" - end end end end