Class: MyRepresentatives::NT::WebIndex

Inherits:
Object
  • Object
show all
Defined in:
lib/my_representatives/nt/web_index.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeWebIndex

Returns a new instance of WebIndex.



6
7
8
9
10
11
12
13
14
15
# File 'lib/my_representatives/nt/web_index.rb', line 6

def initialize
  @logger     = Logger.new(STDOUT)
  @lower_urls = []

  # Lower House
  @index_url = "https://parliament.nt.gov.au/members-of-parliament/members-by-name"
  @document  = find_representatives
  representative_urls_from_document

end

Instance Attribute Details

#documentObject

Returns the value of attribute document.



4
5
6
# File 'lib/my_representatives/nt/web_index.rb', line 4

def document
  @document
end

#index_urlObject

Returns the value of attribute index_url.



4
5
6
# File 'lib/my_representatives/nt/web_index.rb', line 4

def index_url
  @index_url
end

#lower_urlsObject

Returns the value of attribute lower_urls.



4
5
6
# File 'lib/my_representatives/nt/web_index.rb', line 4

def lower_urls
  @lower_urls
end