Class: Ronin::URLQueryParam

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/ronin/url_query_param.rb

Overview

Represents a query param that belongs to a URL.

Instance Method Summary collapse

Methods included from Model

included

Instance Method Details

#inspectString

Inspects the URL query param.

Returns:

  • (String)

    The inspected URL query param.

Since:

  • 1.0.0


69
70
71
# File 'lib/ronin/url_query_param.rb', line 69

def inspect
  "#<#{self.class}: #{self}>"
end

#to_sString

Converts the URL query param to a String.

Returns:

  • (String)

    The dumped URL query param.

Since:

  • 1.0.0


55
56
57
# File 'lib/ronin/url_query_param.rb', line 55

def to_s
  URI::QueryParams.dump(self.name.to_s => self.value)
end