Class: Webdrone::Open
- Inherits:
-
Object
- Object
- Webdrone::Open
- Defined in:
- lib/webdrone/logg.rb,
lib/webdrone/open.rb
Instance Attribute Summary collapse
-
#a0 ⇒ Object
readonly
Returns the value of attribute a0.
Instance Method Summary collapse
-
#initialize(a0) ⇒ Open
constructor
A new instance of Open.
- #reload ⇒ Object
- #url(url) ⇒ Object
Constructor Details
#initialize(a0) ⇒ Open
Returns a new instance of Open.
13 14 15 |
# File 'lib/webdrone/open.rb', line 13 def initialize(a0) @a0 = a0 end |
Instance Attribute Details
#a0 ⇒ Object (readonly)
Returns the value of attribute a0.
11 12 13 |
# File 'lib/webdrone/open.rb', line 11 def a0 @a0 end |
Instance Method Details
#reload ⇒ Object
23 24 25 26 27 |
# File 'lib/webdrone/open.rb', line 23 def reload @a0.driver.navigate.refresh rescue StandardError => error Webdrone.report_error(@a0, error) end |
#url(url) ⇒ Object
17 18 19 20 21 |
# File 'lib/webdrone/open.rb', line 17 def url(url) @a0.driver.get url rescue StandardError => error Webdrone.report_error(@a0, error) end |