Class: Ronin::URLQueryParamName

Inherits:
Object
  • Object
show all
Includes:
Model, Model::HasUniqueName
Defined in:
lib/ronin/url_query_param_name.rb

Overview

Represents the name of a URLQueryParam.

Instance Method Summary collapse

Methods included from Model::HasUniqueName

included

Methods included from Model

included

Instance Method Details

#created_atTime

Specifies when the URL query param name was first seen.

Returns:

  • (Time)

    The timestamp that the query param name was first seen.

Since:

  • 1.1.0



54
55
56
57
58
# File 'lib/ronin/url_query_param_name.rb', line 54

def created_at
  if (url = self.query_params.urls.first(:fields => [:created_at]))
    url.created_at
  end
end

#inspectString

Inspects the URL query param name.

Returns:

  • (String)

    The inspected URL query param name.

Since:

  • 1.1.0



84
85
86
# File 'lib/ronin/url_query_param_name.rb', line 84

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

#to_sString

Converts the URL query param name to a String.

Returns:

  • (String)

    The name of the URL query param

Since:

  • 1.1.0



70
71
72
# File 'lib/ronin/url_query_param_name.rb', line 70

def to_s
  self.name.to_s
end