Class: Ronin::DB::HTTPResponseHeader
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::HTTPResponseHeader
- Includes:
- Model
- Defined in:
- lib/ronin/db/http_response_header.rb
Overview
Represents a HTTP header belonging to an HTTP response.
Instance Attribute Summary collapse
-
#id ⇒ Integer
The primary ID of the HTTP response header.
-
#name ⇒ HTTPHeaderName
The name of the HTTP response header.
-
#response ⇒ HTTPResponse
The associated HTTP response that the HTTP response header belongs to.
-
#value ⇒ String
The value of the HTTP response 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 response header.
38 |
# File 'lib/ronin/db/http_response_header.rb', line 38 attribute :id, :integer |
#name ⇒ HTTPHeaderName
The name of the HTTP response header.
44 45 |
# File 'lib/ronin/db/http_response_header.rb', line 44 belongs_to :name, required: true, class_name: 'HTTPHeaderName' |
#response ⇒ HTTPResponse
The associated HTTP response that the HTTP response header belongs to.
58 59 |
# File 'lib/ronin/db/http_response_header.rb', line 58 belongs_to :response, required: true, class_name: 'HTTPResponse' |
#value ⇒ String
The value of the HTTP response header.
51 |
# File 'lib/ronin/db/http_response_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_response_header.rb', line 69 def to_s "#{self.name}: #{self.value}" end |