Class: Puppeteer::JSCoverage::Item

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

Direct Known Subclasses

ItemWithRawScriptCoverage

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url:, ranges:, text:) ⇒ Item

Returns a new instance of Item.



7
8
9
10
11
# File 'lib/puppeteer/js_coverage.rb', line 7

def initialize(url:, ranges:, text:)
  @url = url
  @ranges = ranges
  @text = text
end

Instance Attribute Details

#rangesObject (readonly)

Returns the value of attribute ranges.



12
13
14
# File 'lib/puppeteer/js_coverage.rb', line 12

def ranges
  @ranges
end

#textObject (readonly)

Returns the value of attribute text.



12
13
14
# File 'lib/puppeteer/js_coverage.rb', line 12

def text
  @text
end

#urlObject (readonly)

Returns the value of attribute url.



12
13
14
# File 'lib/puppeteer/js_coverage.rb', line 12

def url
  @url
end