Class: Puppeteer::Page::ScriptTag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content: nil, path: nil, type: nil, url: nil) ⇒ ScriptTag

Returns a new instance of ScriptTag.

Parameters:



378
379
380
381
382
383
# File 'lib/puppeteer/page.rb', line 378

def initialize(content: nil, path: nil, type: nil, url: nil)
  @content = content
  @path = path
  @type = type
  @url = url
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



384
385
386
# File 'lib/puppeteer/page.rb', line 384

def content
  @content
end

#pathObject (readonly)

Returns the value of attribute path.



384
385
386
# File 'lib/puppeteer/page.rb', line 384

def path
  @path
end

#typeObject (readonly)

Returns the value of attribute type.



384
385
386
# File 'lib/puppeteer/page.rb', line 384

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



384
385
386
# File 'lib/puppeteer/page.rb', line 384

def url
  @url
end