Class: MyRepresentatives::SA::WebIndexUpper
- Inherits:
-
Object
- Object
- MyRepresentatives::SA::WebIndexUpper
- Defined in:
- lib/my_representatives/sa/web_index_upper.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
Returns the value of attribute document.
-
#index_url ⇒ Object
Returns the value of attribute index_url.
-
#upper_urls ⇒ Object
Returns the value of attribute upper_urls.
Instance Method Summary collapse
-
#initialize ⇒ WebIndexUpper
constructor
A new instance of WebIndexUpper.
Constructor Details
#initialize ⇒ WebIndexUpper
Returns a new instance of WebIndexUpper.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/my_representatives/sa/web_index_upper.rb', line 6 def initialize @logger = Logger.new(STDOUT) @upper_urls = [] # Upper House @index_url = "http://www2.parliament.sa.gov.au/Internet/DesktopModules/memberlist.aspx?sort=name&house=LC" @document = find_representatives representative_urls_from_document end |
Instance Attribute Details
#document ⇒ Object
Returns the value of attribute document.
4 5 6 |
# File 'lib/my_representatives/sa/web_index_upper.rb', line 4 def document @document end |
#index_url ⇒ Object
Returns the value of attribute index_url.
4 5 6 |
# File 'lib/my_representatives/sa/web_index_upper.rb', line 4 def index_url @index_url end |
#upper_urls ⇒ Object
Returns the value of attribute upper_urls.
4 5 6 |
# File 'lib/my_representatives/sa/web_index_upper.rb', line 4 def upper_urls @upper_urls end |