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:



374
375
376
377
378
379
# File 'lib/puppeteer/page.rb', line 374

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.



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

def content
  @content
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end