Class: MyRepresentatives::NSW::CSVLower
- Inherits:
-
Object
- Object
- MyRepresentatives::NSW::CSVLower
- Defined in:
- lib/my_representatives/nsw/csv_lower.rb
Instance Attribute Summary collapse
-
#csv_filename ⇒ Object
Returns the value of attribute csv_filename.
-
#csv_url ⇒ Object
Returns the value of attribute csv_url.
-
#people ⇒ Object
Returns the value of attribute people.
Instance Method Summary collapse
-
#initialize ⇒ CSVLower
constructor
A new instance of CSVLower.
Methods included from Guessable
#guess_first, #guess_gender, #guess_last, #guess_preferred, #guess_title
Methods included from Fileable
Constructor Details
#initialize ⇒ CSVLower
Returns a new instance of CSVLower.
9 10 11 12 13 14 15 16 |
# File 'lib/my_representatives/nsw/csv_lower.rb', line 9 def initialize @csv_url = "https://www.parliament.nsw.gov.au/_layouts/15/NSWParliament/memberlistservice.aspx?members=LA&format=Excel" @csv_filename = "tmp/csv_nsw_lower.csv" @people = [] csv_from_url people_from_csv end |
Instance Attribute Details
#csv_filename ⇒ Object
Returns the value of attribute csv_filename.
7 8 9 |
# File 'lib/my_representatives/nsw/csv_lower.rb', line 7 def csv_filename @csv_filename end |
#csv_url ⇒ Object
Returns the value of attribute csv_url.
7 8 9 |
# File 'lib/my_representatives/nsw/csv_lower.rb', line 7 def csv_url @csv_url end |
#people ⇒ Object
Returns the value of attribute people.
7 8 9 |
# File 'lib/my_representatives/nsw/csv_lower.rb', line 7 def people @people end |