Class: Puppeteer::Target::TargetInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/puppeteer/target.rb,
sig/_supplementary.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ TargetInfo

Returns a new instance of TargetInfo.

Parameters:

  • options (Hash[String, untyped])


4
5
6
7
8
9
10
11
12
13
# File 'lib/puppeteer/target.rb', line 4

def initialize(options)
  @target_id = options['targetId']
  @type = options['type']
  @title = options['title']
  @url = options['url']
  @subtype = options['subtype']
  @attached = options['attached']
  @browser_context_id = options['browserContextId']
  @opener_id = options['openerId']
end

Instance Attribute Details

#attachedObject (readonly)

Returns the value of attribute attached.



14
15
16
# File 'lib/puppeteer/target.rb', line 14

def attached
  @attached
end

#browser_context_idObject (readonly)

Returns the value of attribute browser_context_id.



14
15
16
# File 'lib/puppeteer/target.rb', line 14

def browser_context_id
  @browser_context_id
end

#opener_idObject (readonly)

Returns the value of attribute opener_id.



14
15
16
# File 'lib/puppeteer/target.rb', line 14

def opener_id
  @opener_id
end

#subtypeObject (readonly)

Returns the value of attribute subtype.



14
15
16
# File 'lib/puppeteer/target.rb', line 14

def subtype
  @subtype
end

#target_idObject (readonly)

Returns the value of attribute target_id.



14
15
16
# File 'lib/puppeteer/target.rb', line 14

def target_id
  @target_id
end

#titleObject (readonly)

Returns the value of attribute title.



14
15
16
# File 'lib/puppeteer/target.rb', line 14

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



14
15
16
# File 'lib/puppeteer/target.rb', line 14

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



14
15
16
# File 'lib/puppeteer/target.rb', line 14

def url
  @url
end