Class: Website

Inherits:
Object
  • Object
show all
Defined in:
lib/omni_browser/website.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#browserObject (readonly)

Returns the value of attribute browser.



2
3
4
# File 'lib/omni_browser/website.rb', line 2

def browser
  @browser
end

#databaseObject (readonly)

Returns the value of attribute database.



2
3
4
# File 'lib/omni_browser/website.rb', line 2

def database
  @database
end