Class: Page

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

Direct Known Subclasses

ItemsPage

Constant Summary collapse

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

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.



10
11
12
13
14
# File 'lib/etvnet_seek/core/page.rb', line 10

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.



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

def document
  @document
end