Class: Page

Inherits:
ServiceCall show all
Defined in:
lib/etvnet_seek/core/page.rb

Direct Known Subclasses

BasePage

Constant Summary collapse

BASE_URL =
"http://www.etvnet.ca"

Instance Attribute Summary collapse

Attributes inherited from ServiceCall

#url

Instance Method Summary collapse

Methods inherited from ServiceCall

#get, #post

Constructor Details

#initialize(url = BASE_URL) ⇒ Page

Returns a new instance of Page.



8
9
10
11
12
# File 'lib/etvnet_seek/core/page.rb', line 8

def initialize(url = BASE_URL)
  super(url.index(BASE_URL).nil? ? "#{BASE_URL}/#{url}" : url)

  @document = get_document
end

Instance Attribute Details

#documentObject (readonly)

Returns the value of attribute document.



6
7
8
# File 'lib/etvnet_seek/core/page.rb', line 6

def document
  @document
end