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