Class: MyRepresentatives::WA::CSVUpper
- Inherits:
-
Object
- Object
- MyRepresentatives::WA::CSVUpper
- Defined in:
- lib/my_representatives/wa/csv_upper.rb
Instance Attribute Summary collapse
-
#csv_filename ⇒ Object
Returns the value of attribute csv_filename.
-
#people ⇒ Object
Returns the value of attribute people.
-
#xls_filename ⇒ Object
Returns the value of attribute xls_filename.
-
#xls_url ⇒ Object
Returns the value of attribute xls_url.
Instance Method Summary collapse
-
#initialize ⇒ CSVUpper
constructor
A new instance of CSVUpper.
Methods included from Guessable
#guess_first, #guess_gender, #guess_last, #guess_preferred, #guess_title
Methods included from Fileable
Constructor Details
#initialize ⇒ CSVUpper
Returns a new instance of CSVUpper.
9 10 11 12 13 14 15 16 17 |
# File 'lib/my_representatives/wa/csv_upper.rb', line 9 def initialize self.xls_url = "http://www.parliament.wa.gov.au/WebCMS/WebCMS.nsf/resources/file-data-for-legislative-council-members/$file/DATA%20FOR%20LEGISLATIVE%20COUNCIL%20MEMBERS%2023052017.xls" self.xls_filename = "tmp/csv_wa_upper.xls" self.csv_filename = "tmp/csv_wa_upper.csv" self.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/wa/csv_upper.rb', line 7 def csv_filename @csv_filename end |
#people ⇒ Object
Returns the value of attribute people.
7 8 9 |
# File 'lib/my_representatives/wa/csv_upper.rb', line 7 def people @people end |
#xls_filename ⇒ Object
Returns the value of attribute xls_filename.
7 8 9 |
# File 'lib/my_representatives/wa/csv_upper.rb', line 7 def xls_filename @xls_filename end |
#xls_url ⇒ Object
Returns the value of attribute xls_url.
7 8 9 |
# File 'lib/my_representatives/wa/csv_upper.rb', line 7 def xls_url @xls_url end |