Class: MyRepresentatives::ACT::WebIndex
- Inherits:
-
Object
- Object
- MyRepresentatives::ACT::WebIndex
- Defined in:
- lib/my_representatives/act/web_index.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
Returns the value of attribute document.
-
#index_url ⇒ Object
Returns the value of attribute index_url.
-
#representative_documents ⇒ Object
Returns the value of attribute representative_documents.
Instance Method Summary collapse
-
#initialize ⇒ WebIndex
constructor
A new instance of WebIndex.
Constructor Details
#initialize ⇒ WebIndex
Returns a new instance of WebIndex.
6 7 8 9 10 11 12 |
# File 'lib/my_representatives/act/web_index.rb', line 6 def initialize @logger = Logger.new(STDOUT) @index_url = "https://www.parliament.act.gov.au/members/current" @document = find_representatives @representative_documents = [] representative_documents_from_document end |
Instance Attribute Details
#document ⇒ Object
Returns the value of attribute document.
4 5 6 |
# File 'lib/my_representatives/act/web_index.rb', line 4 def document @document end |
#index_url ⇒ Object
Returns the value of attribute index_url.
4 5 6 |
# File 'lib/my_representatives/act/web_index.rb', line 4 def index_url @index_url end |
#representative_documents ⇒ Object
Returns the value of attribute representative_documents.
4 5 6 |
# File 'lib/my_representatives/act/web_index.rb', line 4 def representative_documents @representative_documents end |