Class: Website
- Inherits:
-
Object
- Object
- Website
- Defined in:
- lib/omni_browser/website.rb
Instance Attribute Summary collapse
-
#browser ⇒ Object
readonly
Returns the value of attribute browser.
-
#database ⇒ Object
readonly
Returns the value of attribute database.
Instance Method Summary collapse
-
#initialize(browser_obj, database) ⇒ Website
constructor
A new instance of Website.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(browser_obj, database) ⇒ Website
Returns a new instance of Website.
4 5 6 7 |
# File 'lib/omni_browser/website.rb', line 4 def initialize (browser_obj, database) @browser = browser_obj @database = database end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
9 10 11 |
# File 'lib/omni_browser/website.rb', line 9 def method_missing (method, *args) browser.send(method, *args) end |
Instance Attribute Details
#browser ⇒ Object (readonly)
Returns the value of attribute browser.
2 3 4 |
# File 'lib/omni_browser/website.rb', line 2 def browser @browser end |
#database ⇒ Object (readonly)
Returns the value of attribute database.
2 3 4 |
# File 'lib/omni_browser/website.rb', line 2 def database @database end |