Class: Ronin::DB::URLQueryParamName

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

Overview

Represents the name of a URLQueryParam.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model::HasUniqueName

included

Methods included from Model

included

Instance Attribute Details

#created_atTime (readonly)

When the URL query param name was first created.

Returns:

  • (Time)


60
# File 'lib/ronin/db/url_query_param_name.rb', line 60

attribute :created_at, :datetime

#idInteger

The primary-key of the URL query param.

Returns:

  • (Integer)


40
# File 'lib/ronin/db/url_query_param_name.rb', line 40

attribute :id, :integer

#nameString

The name of the URL query param.

Returns:

  • (String)


46
# File 'lib/ronin/db/url_query_param_name.rb', line 46

attribute :name, :string

#query_paramsArray<URLQueryParam>

The URL query params.

Returns:



53
54
# File 'lib/ronin/db/url_query_param_name.rb', line 53

has_many :query_params, class_name:  'URLQueryParam',
foreign_key: :name_id

Instance Method Details

#to_sString

Converts the URL query param name to a String.

Returns:

  • (String)

    The name of the URL query param



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

def to_s
  self.name.to_s
end