lib/runcible/extensions/distributor.rb in runcible-0.4.11 vs lib/runcible/extensions/distributor.rb in runcible-0.4.12
- old
+ new
@@ -32,8 +32,20 @@
def initialize(params={})
@auto_publish = false
self.id = params[:id] || SecureRandom.hex(10)
params.each{|k,v| self.send("#{k.to_s}=",v)}
end
+
+ # Distributor Type id
+ #
+ # @return [string]
+ def type_id
+ self.class.type_id
+ end
+
+ def self.type_id
+ raise NotImplementedError("self.type_id")
+ end
+
end
end
end