Module: Buby::ScanIssueHelper Deprecated

Defined in:
lib/buby/implants/scan_issue.rb

Overview

Deprecated.

this will change to the new style in the next release

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.implant(base) ⇒ Object

one-shot method to implant ourselves onto a target object’s class interface in ruby. All later instances will also get ‘us’ for free!



20
21
22
23
24
# File 'lib/buby/implants/scan_issue.rb', line 20

def self.implant(base)
  return if @implanted
  base.class.instance_eval { include(ScanIssueHelper) }
  @implanted = true
end

.implanted?Boolean

Returns:

  • (Boolean)


32
# File 'lib/buby/implants/scan_issue.rb', line 32

def self.implanted? ; @implanted; end

Instance Method Details

#http_messagesObject Also known as: messages



26
27
28
# File 'lib/buby/implants/scan_issue.rb', line 26

def http_messages
  HttpRequestResponseList.new( self.getHttpMessages() )
end

#uriObject

Returns a Ruby URI object derived from the java.net.URL object



14
15
16
# File 'lib/buby/implants/scan_issue.rb', line 14

def uri
  @uri ||= URI.parse url.to_s if not url.nil?
end