pezra/hal-client

View on GitHub
lib/hal_client/anonymous_resource_locator.rb

Summary

Maintainability
A
0 mins
Test Coverage
class HalClient
  class AnonymousResourceLocator
    def to_s
      "ANONYMOUS(#{object_id})"
    end
    alias_method :to_str, :to_s

    def +(other)
      return other if Addressable::Template === other

      Addressable::URI.parse(other)
    end
  end
end