Class: Ronin::DB::HTTPRequestHeader
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::HTTPRequestHeader
- Includes:
- Model
- Defined in:
- lib/ronin/db/http_request_header.rb
Overview
Represents a HTTP header sent in a HTTP request.
Instance Attribute Summary collapse
-
#id ⇒ Integer
The primary ID of the HTTP request header.
-
#name ⇒ HTTPHeaderName
The name of the HTTP request header.
-
#request ⇒ HTTPRequest
The HTTP request that the header belongs to.
-
#value ⇒ String
The value of the HTTP request header.
Instance Method Summary collapse
-
#to_s ⇒ String
Converts the HTTP request header to a String.
Methods included from Model
Instance Attribute Details
#id ⇒ Integer
The primary ID of the HTTP request header.
38 |
# File 'lib/ronin/db/http_request_header.rb', line 38 attribute :id, :integer |
#name ⇒ HTTPHeaderName
The name of the HTTP request header.
44 45 |
# File 'lib/ronin/db/http_request_header.rb', line 44 belongs_to :name, required: true, class_name: 'HTTPHeaderName' |
#request ⇒ HTTPRequest
The HTTP request that the header belongs to.
58 59 |
# File 'lib/ronin/db/http_request_header.rb', line 58 belongs_to :request, required: true, class_name: 'HTTPRequest' |
#value ⇒ String
The value of the HTTP request header.
51 |
# File 'lib/ronin/db/http_request_header.rb', line 51 attribute :value, :string |
Instance Method Details
#to_s ⇒ String
Converts the HTTP request header to a String.
69 70 71 |
# File 'lib/ronin/db/http_request_header.rb', line 69 def to_s "#{self.name}: #{self.value}" end |