Class: Metallize
- Inherits:
-
Object
- Object
- Metallize
- Defined in:
- lib/metallize.rb,
lib/metallize/version.rb
Defined Under Namespace
Modules: ElementMatcher Classes: Form, Page
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Attribute Summary collapse
-
#driver ⇒ Object
readonly
Returns the value of attribute driver.
Class Method Summary collapse
Instance Method Summary collapse
- #get(uri) ⇒ Object
-
#initialize(browser) ⇒ Metallize
constructor
A new instance of Metallize.
- #method_missing(sym) ⇒ Object
- #quit ⇒ Object (also: #close)
Constructor Details
#initialize(browser) ⇒ Metallize
Returns a new instance of Metallize.
25 26 27 |
# File 'lib/metallize.rb', line 25 def initialize(browser) @driver = Selenium::WebDriver.for browser end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym) ⇒ Object
40 41 42 |
# File 'lib/metallize.rb', line 40 def method_missing(sym) driver.send sym end |
Instance Attribute Details
#driver ⇒ Object (readonly)
Returns the value of attribute driver.
23 24 25 |
# File 'lib/metallize.rb', line 23 def driver @driver end |
Class Method Details
.inspect ⇒ Object
44 45 46 |
# File 'lib/metallize.rb', line 44 def self.inspect 'Metallize; Mechanize API using Selenium-WebDriver' end |