Class: Puppeteer::Browser::Version

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Version

Returns a new instance of Version.



276
277
278
279
280
281
282
# File 'lib/puppeteer/browser.rb', line 276

def initialize(hash)
  @protocol_version = hash['protocolVersion']
  @product = hash['product']
  @revision = hash['revision']
  @user_agent = hash['userAgent']
  @js_version = hash['jsVersion']
end

Instance Attribute Details

#js_versionObject (readonly)

Returns the value of attribute js_version.



284
285
286
# File 'lib/puppeteer/browser.rb', line 284

def js_version
  @js_version
end

#productObject (readonly)

Returns the value of attribute product.



284
285
286
# File 'lib/puppeteer/browser.rb', line 284

def product
  @product
end

#protocol_versionObject (readonly)

Returns the value of attribute protocol_version.



284
285
286
# File 'lib/puppeteer/browser.rb', line 284

def protocol_version
  @protocol_version
end

#revisionObject (readonly)

Returns the value of attribute revision.



284
285
286
# File 'lib/puppeteer/browser.rb', line 284

def revision
  @revision
end

#user_agentObject (readonly)

Returns the value of attribute user_agent.



284
285
286
# File 'lib/puppeteer/browser.rb', line 284

def user_agent
  @user_agent
end