lib/ocean/api_remote_resource.rb
#
# Instance method to do a DELETE to a resource or any of its hyperlinks. Will not raise 
# exceptions if they occur, but will always return the resource itself.
# A missing hyperlink, though, will always raise a HyperlinkMissing exception.
#
Instance method to do a DELETE to a resource or any of its hyperlinks. Will not raise
exceptions if they occur, but will always return the resource itself.
A missing hyperlink, though, will always raise a HyperlinkMissing exception.
Instance method to do a DELETE to a resource or any of its hyperlinks . Will not raise exceptions if they occur but will always return the resource itself . A missing hyperlink though will always raise a HyperlinkMissing exception .
def delete(hlink=nil, args: nil)
      get
      hlink = (hlink || 'self').to_s
      hl_data = hyperlink[hlink]
      raise HyperlinkMissing, "#{resource_type} has no #{hlink} hyperlink" unless hl_data
      _destroy(hl_data['href'], args: args) rescue nil
      self
    end
def delete ( hlink = nil , args : nil ) get hlink = ( hlink || 'self' ) . to_s hl_data = hyperlink [ hlink ] raise HyperlinkMissing , "#{resource_type} has no #{hlink} hyperlink" unless hl_data _destroy ( hl_data [ 'href' ] , args : args ) rescue nil self end
Instance method to do a DELETE to a resource or any of its hyperlinks.
Instance method to do a DELETE to a resource or any of its hyperlinks .
hlink
args