Class: Puppeteer::ConsoleMessage::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer/console_message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, line_number:, column_number: nil) ⇒ Location

Returns a new instance of Location.



3
4
5
6
7
# File 'lib/puppeteer/console_message.rb', line 3

def initialize(url:, line_number:, column_number: nil)
  @url = url
  @line_number = line_number
  @column_number = column_number
end

Instance Attribute Details

#column_numberObject (readonly)

Returns the value of attribute column_number.



9
10
11
# File 'lib/puppeteer/console_message.rb', line 9

def column_number
  @column_number
end

#line_numberObject (readonly)

Returns the value of attribute line_number.



9
10
11
# File 'lib/puppeteer/console_message.rb', line 9

def line_number
  @line_number
end

#urlObject (readonly)

Returns the value of attribute url.



9
10
11
# File 'lib/puppeteer/console_message.rb', line 9

def url
  @url
end