Class: Selenium::WebDriver::DevTools::ConsoleEvent
- Inherits:
 - 
      Object
      
        
- Object
 - Selenium::WebDriver::DevTools::ConsoleEvent
 
 
- Defined in:
 - lib/selenium/webdriver/devtools/console_event.rb
 
Instance Attribute Summary collapse
- 
  
    
      #args  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute args.
 - 
  
    
      #timestamp  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute timestamp.
 - 
  
    
      #type  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute type.
 
Instance Method Summary collapse
- 
  
    
      #initialize(type:, timestamp:, args:)  ⇒ ConsoleEvent 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ConsoleEvent.
 
Constructor Details
#initialize(type:, timestamp:, args:) ⇒ ConsoleEvent
Returns a new instance of ConsoleEvent.
      26 27 28 29 30 31 32  | 
    
      # File 'lib/selenium/webdriver/devtools/console_event.rb', line 26 def initialize(type:, timestamp:, args:) @type = type.to_sym @timestamp = Time.at( / 1000) @args = args.map do |arg| arg.key?('value') ? arg['value'] : arg end end  | 
  
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
      24 25 26  | 
    
      # File 'lib/selenium/webdriver/devtools/console_event.rb', line 24 def args @args end  | 
  
#timestamp ⇒ Object
Returns the value of attribute timestamp.
      24 25 26  | 
    
      # File 'lib/selenium/webdriver/devtools/console_event.rb', line 24 def @timestamp end  | 
  
#type ⇒ Object
Returns the value of attribute type.
      24 25 26  | 
    
      # File 'lib/selenium/webdriver/devtools/console_event.rb', line 24 def type @type end  |