Module: Ronin::Exploits::Metadata::URLQueryParam::ClassMethods

Defined in:
lib/ronin/exploits/metadata/url_query_param.rb

Overview

Class-methods.

Instance Method Summary collapse

Instance Method Details

#url_query_param(new_url_query_param = nil) ⇒ String?

Get or sets the target URL query param of the exploit.

Parameters:

  • new_url_query_param (String, nil) (defaults to: nil)

    The optional new URL query param value to set.

Returns:

  • (String, nil)

    The set URL query param value.



57
58
59
60
61
62
63
64
65
# File 'lib/ronin/exploits/metadata/url_query_param.rb', line 57

def url_query_param(new_url_query_param=nil)
  if new_url_query_param
    @url_query_param = new_url_query_param
  else
    @url_query_param ||= if superclass.kind_of?(ClassMethods)
                           superclass.url_query_param
                         end
  end
end