lib/hal_client/representation.rb
# Returns the URL of the resource this representation represents.
Returns the URL of the resource this representation represents.
Returns the URL of the resource this representation represents .
def href
      @href ||= raw
              .fetch("_links",{})
              .fetch("self",{})
              .fetch("href", AnonymousResourceLocator.new)
    end
def href @href ||= raw . fetch ( "_links" , { } ) . fetch ( "self" , { } ) . fetch ( "href" , AnonymousResourceLocator . new ) end
Returns the URL of the resource this representation represents.
Returns the URL of the resource this representation represents .