Class: Ronin::DB::URLQueryParamName
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::URLQueryParamName
- 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
-
#created_at ⇒ Time
readonly
When the URL query param name was first created.
-
#id ⇒ Integer
The primary-key of the URL query param.
-
#name ⇒ String
The name of the URL query param.
-
#query_params ⇒ Array<URLQueryParam>
The URL query params.
-
#urls ⇒ Array<URL>
The URLs that use this query param name.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the URL query param name to a String.
Methods included from Model::HasUniqueName
Methods included from Model
Instance Attribute Details
#created_at ⇒ Time (readonly)
When the URL query param name was first created.
68 |
# File 'lib/ronin/db/url_query_param_name.rb', line 68 attribute :created_at, :datetime |
#id ⇒ Integer
The primary-key of the URL query param.
40 |
# File 'lib/ronin/db/url_query_param_name.rb', line 40 attribute :id, :integer |
#name ⇒ String
The name of the URL query param.
46 |
# File 'lib/ronin/db/url_query_param_name.rb', line 46 attribute :name, :string |
#query_params ⇒ Array<URLQueryParam>
The URL query params.
53 54 |
# File 'lib/ronin/db/url_query_param_name.rb', line 53 has_many :query_params, class_name: 'URLQueryParam', foreign_key: :name_id |
#urls ⇒ Array<URL>
The URLs that use this query param name.
62 |
# File 'lib/ronin/db/url_query_param_name.rb', line 62 has_many :urls, through: :query_params |
Instance Method Details
#to_s ⇒ String
Converts the URL query param name to a String.
78 79 80 |
# File 'lib/ronin/db/url_query_param_name.rb', line 78 def to_s self.name.to_s end |