Class: Puppeteer::Device
- Inherits:
-
Object
- Object
- Puppeteer::Device
- Defined in:
- lib/puppeteer/device.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#user_agent ⇒ Object
readonly
Returns the value of attribute user_agent.
-
#viewport ⇒ Object
readonly
Returns the value of attribute viewport.
Instance Method Summary collapse
-
#initialize(name:, user_agent:, viewport:) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(name:, user_agent:, viewport:) ⇒ Device
Returns a new instance of Device.
5 6 7 8 9 |
# File 'lib/puppeteer/device.rb', line 5 def initialize(name:, user_agent:, viewport:) @name = name @user_agent = user_agent @viewport = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/puppeteer/device.rb', line 11 def name @name end |
#user_agent ⇒ Object (readonly)
Returns the value of attribute user_agent.
11 12 13 |
# File 'lib/puppeteer/device.rb', line 11 def user_agent @user_agent end |
#viewport ⇒ Object (readonly)
Returns the value of attribute viewport.
11 12 13 |
# File 'lib/puppeteer/device.rb', line 11 def @viewport end |