Class: Puppeteer::Target::TargetInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ TargetInfo

Returns a new instance of TargetInfo.



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

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

Instance Attribute Details

#attachedObject (readonly)

Returns the value of attribute attached.



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

def attached
  @attached
end

#browser_context_idObject (readonly)

Returns the value of attribute browser_context_id.



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

def browser_context_id
  @browser_context_id
end

#opener_idObject (readonly)

Returns the value of attribute opener_id.



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

def opener_id
  @opener_id
end

#target_idObject (readonly)

Returns the value of attribute target_id.



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

def target_id
  @target_id
end

#titleObject (readonly)

Returns the value of attribute title.



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

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end