Class: Ronin::DB::HTTPQueryParam
- Inherits:
- 
      ActiveRecord::Base
      
        - Object
- ActiveRecord::Base
- Ronin::DB::HTTPQueryParam
 
- Includes:
- Model
- Defined in:
- lib/ronin/db/http_query_param.rb
Overview
Represents a query param that belongs to a HTTPRequest.
Instance Attribute Summary collapse
- 
  
    
      #id  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The primary-key of the HTTP query param. 
- 
  
    
      #name  ⇒ HTTPQueryParamName 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the HTTP query param. 
- 
  
    
      #request  ⇒ HTTPRequest 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The HTTP request which contains this HTTP query param. 
- 
  
    
      #value  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The value of the HTTP query param. 
Instance Method Summary collapse
- 
  
    
      #to_s  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    Converts the HTTP query param to a String. 
Methods included from Model
Instance Attribute Details
#id ⇒ Integer
The primary-key of the HTTP query param
| 39 | # File 'lib/ronin/db/http_query_param.rb', line 39 attribute :id, :integer | 
#name ⇒ HTTPQueryParamName
The name of the HTTP query param
| 45 46 | # File 'lib/ronin/db/http_query_param.rb', line 45 belongs_to :name, required: true, class_name: 'HTTPQueryParamName' | 
#request ⇒ HTTPRequest
The HTTP request which contains this HTTP query param.
| 59 60 | # File 'lib/ronin/db/http_query_param.rb', line 59 belongs_to :request, required: true, class_name: 'HTTPRequest' | 
#value ⇒ String
The value of the HTTP query param
| 53 | # File 'lib/ronin/db/http_query_param.rb', line 53 attribute :value, :text | 
Instance Method Details
#to_s ⇒ String
Converts the HTTP query param to a String.
| 70 71 72 | # File 'lib/ronin/db/http_query_param.rb', line 70 def to_s URI::QueryParams.dump(self.name.to_s => self.value) end |