Class: Puppeteer::Bidi::ConsoleMessage
- Inherits:
-
Object
- Object
- Puppeteer::Bidi::ConsoleMessage
- Defined in:
- lib/puppeteer/bidi/console_message.rb,
sig/puppeteer/bidi/console_message.rbs
Overview
ConsoleMessage represents a browser console/log entry.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#stack_trace ⇒ Object
readonly
Returns the value of attribute stack_trace.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, text:, args: [], location: nil, stack_trace: []) ⇒ ConsoleMessage
constructor
A new instance of ConsoleMessage.
Constructor Details
#initialize(type:, text:, args: [], location: nil, stack_trace: []) ⇒ ConsoleMessage
Returns a new instance of ConsoleMessage.
16 17 18 19 20 21 22 |
# File 'lib/puppeteer/bidi/console_message.rb', line 16 def initialize(type:, text:, args: [], location: nil, stack_trace: []) @type = type @text = text @args = args @location = location @stack_trace = stack_trace end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
8 9 10 |
# File 'lib/puppeteer/bidi/console_message.rb', line 8 def args @args end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
8 9 10 |
# File 'lib/puppeteer/bidi/console_message.rb', line 8 def location @location end |
#stack_trace ⇒ Object (readonly)
Returns the value of attribute stack_trace.
8 9 10 |
# File 'lib/puppeteer/bidi/console_message.rb', line 8 def stack_trace @stack_trace end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
8 9 10 |
# File 'lib/puppeteer/bidi/console_message.rb', line 8 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/puppeteer/bidi/console_message.rb', line 8 def type @type end |