lib/roda/endpoints/endpoint/namespace.rb in roda-endpoints-0.1.0 vs lib/roda/endpoints/endpoint/namespace.rb in roda-endpoints-0.2.0

- old
+ new

@@ -17,11 +17,11 @@ def initialize(name:, ns: name.to_s, parent: Undefined, **attributes) @name = name @ns = ns unless parent == Undefined @parent = parent - @ns = "#{parent.ns}.#{ns}" + @ns = [parent.ns, ns].compact.join('.') end super(name: name, **attributes) end # @return [Symbol] @@ -30,19 +30,9 @@ # @return [String] attr_reader :ns # @return [Endpoint] attr_reader :parent - - # @return [ROM::Repository] - def repository - container[@repository_key] if @repository_key - end - - # @return [{Symbol=>Object}] - def to_hash - super.merge(repository: @repository_key) - end end end end end