Class: Puppeteer::Browser::Version
- Inherits:
-
Object
- Object
- Puppeteer::Browser::Version
- Defined in:
- lib/puppeteer/browser.rb
Instance Attribute Summary collapse
-
#js_version ⇒ Object
readonly
Returns the value of attribute js_version.
-
#product ⇒ Object
readonly
Returns the value of attribute product.
-
#protocol_version ⇒ Object
readonly
Returns the value of attribute protocol_version.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
-
#user_agent ⇒ Object
readonly
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Version
constructor
A new instance of Version.
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_version ⇒ Object (readonly)
Returns the value of attribute js_version.
284 285 286 |
# File 'lib/puppeteer/browser.rb', line 284 def js_version @js_version end |
#product ⇒ Object (readonly)
Returns the value of attribute product.
284 285 286 |
# File 'lib/puppeteer/browser.rb', line 284 def product @product end |
#protocol_version ⇒ Object (readonly)
Returns the value of attribute protocol_version.
284 285 286 |
# File 'lib/puppeteer/browser.rb', line 284 def protocol_version @protocol_version end |
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
284 285 286 |
# File 'lib/puppeteer/browser.rb', line 284 def revision @revision end |
#user_agent ⇒ Object (readonly)
Returns the value of attribute user_agent.
284 285 286 |
# File 'lib/puppeteer/browser.rb', line 284 def user_agent @user_agent end |