Class: Selenium::WebDriver::LogEntry
- Inherits:
 - 
      Object
      
        
- Object
 - Selenium::WebDriver::LogEntry
 
 
- Defined in:
 - lib/selenium/webdriver/common/log_entry.rb
 
Instance Attribute Summary collapse
- 
  
    
      #level  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute level.
 - 
  
    
      #message  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute message.
 - 
  
    
      #timestamp  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute timestamp.
 
Instance Method Summary collapse
- #as_json ⇒ Object
 - 
  
    
      #initialize(level, timestamp, message)  ⇒ LogEntry 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of LogEntry.
 - #time ⇒ Object
 - #to_s ⇒ Object
 
Constructor Details
#initialize(level, timestamp, message) ⇒ LogEntry
Returns a new instance of LogEntry.
      25 26 27 28 29  | 
    
      # File 'lib/selenium/webdriver/common/log_entry.rb', line 25 def initialize(level, , ) @level = level @timestamp = @message = end  | 
  
Instance Attribute Details
#level ⇒ Object (readonly)
Returns the value of attribute level.
      23 24 25  | 
    
      # File 'lib/selenium/webdriver/common/log_entry.rb', line 23 def level @level end  | 
  
#message ⇒ Object (readonly)
Returns the value of attribute message.
      23 24 25  | 
    
      # File 'lib/selenium/webdriver/common/log_entry.rb', line 23 def @message end  | 
  
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
      23 24 25  | 
    
      # File 'lib/selenium/webdriver/common/log_entry.rb', line 23 def @timestamp end  | 
  
Instance Method Details
#as_json ⇒ Object
      31 32 33 34 35 36 37  | 
    
      # File 'lib/selenium/webdriver/common/log_entry.rb', line 31 def as_json(*) { 'timestamp' => , 'level' => level, 'message' => } end  | 
  
#time ⇒ Object
      43 44 45  | 
    
      # File 'lib/selenium/webdriver/common/log_entry.rb', line 43 def time Time.at / 1000 end  | 
  
#to_s ⇒ Object
      39 40 41  | 
    
      # File 'lib/selenium/webdriver/common/log_entry.rb', line 39 def to_s "#{time} #{level}: #{}" end  |