Class: UKPlanningScraper::Application
- Inherits:
-
Object
- Object
- UKPlanningScraper::Application
- Defined in:
- lib/uk_planning_scraper/application.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#alternative_reference ⇒ Object
Returns the value of attribute alternative_reference.
-
#appeal_decision ⇒ Object
Returns the value of attribute appeal_decision.
-
#appeal_status ⇒ Object
Returns the value of attribute appeal_status.
-
#authority_name ⇒ Object
Returns the value of attribute authority_name.
-
#council_reference ⇒ Object
Returns the value of attribute council_reference.
-
#date_decision ⇒ Object
Returns the value of attribute date_decision.
-
#date_received ⇒ Object
Returns the value of attribute date_received.
-
#date_validated ⇒ Object
Returns the value of attribute date_validated.
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#description ⇒ Object
Returns the value of attribute description.
-
#documents_count ⇒ Object
Returns the value of attribute documents_count.
-
#documents_url ⇒ Object
Returns the value of attribute documents_url.
-
#info_url ⇒ Object
Returns the value of attribute info_url.
-
#scraped_at ⇒ Object
Returns the value of attribute scraped_at.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
10 11 12 |
# File 'lib/uk_planning_scraper/application.rb', line 10 def address @address end |
#alternative_reference ⇒ Object
Returns the value of attribute alternative_reference.
14 15 16 |
# File 'lib/uk_planning_scraper/application.rb', line 14 def alternative_reference @alternative_reference end |
#appeal_decision ⇒ Object
Returns the value of attribute appeal_decision.
18 19 20 |
# File 'lib/uk_planning_scraper/application.rb', line 18 def appeal_decision @appeal_decision end |
#appeal_status ⇒ Object
Returns the value of attribute appeal_status.
17 18 19 |
# File 'lib/uk_planning_scraper/application.rb', line 17 def appeal_status @appeal_status end |
#authority_name ⇒ Object
Returns the value of attribute authority_name.
3 4 5 |
# File 'lib/uk_planning_scraper/application.rb', line 3 def @authority_name end |
#council_reference ⇒ Object
Returns the value of attribute council_reference.
4 5 6 |
# File 'lib/uk_planning_scraper/application.rb', line 4 def council_reference @council_reference end |
#date_decision ⇒ Object
Returns the value of attribute date_decision.
16 17 18 |
# File 'lib/uk_planning_scraper/application.rb', line 16 def date_decision @date_decision end |
#date_received ⇒ Object
Returns the value of attribute date_received.
5 6 7 |
# File 'lib/uk_planning_scraper/application.rb', line 5 def date_received @date_received end |
#date_validated ⇒ Object
Returns the value of attribute date_validated.
6 7 8 |
# File 'lib/uk_planning_scraper/application.rb', line 6 def date_validated @date_validated end |
#decision ⇒ Object
Returns the value of attribute decision.
15 16 17 |
# File 'lib/uk_planning_scraper/application.rb', line 15 def decision @decision end |
#description ⇒ Object
Returns the value of attribute description.
11 12 13 |
# File 'lib/uk_planning_scraper/application.rb', line 11 def description @description end |
#documents_count ⇒ Object
Returns the value of attribute documents_count.
12 13 14 |
# File 'lib/uk_planning_scraper/application.rb', line 12 def documents_count @documents_count end |
#documents_url ⇒ Object
Returns the value of attribute documents_url.
13 14 15 |
# File 'lib/uk_planning_scraper/application.rb', line 13 def documents_url @documents_url end |
#info_url ⇒ Object
Returns the value of attribute info_url.
9 10 11 |
# File 'lib/uk_planning_scraper/application.rb', line 9 def info_url @info_url end |
#scraped_at ⇒ Object
Returns the value of attribute scraped_at.
8 9 10 |
# File 'lib/uk_planning_scraper/application.rb', line 8 def scraped_at @scraped_at end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/uk_planning_scraper/application.rb', line 7 def status @status end |
Instance Method Details
#to_hash ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/uk_planning_scraper/application.rb', line 20 def to_hash { scraped_at: @scraped_at, authority_name: @authority_name, council_reference: @council_reference, date_received: @date_received, date_validated: @date_validated, status: @status, decision: @decision, date_decision: @date_decision, info_url: @info_url, address: @address, description: @description, documents_count: @documents_count, documents_url: @documents_url, alternative_reference: @alternative_reference, appeal_status: @appeal_status, appeal_decision: @appeal_decision } end |
#valid? ⇒ Boolean
41 42 43 44 |
# File 'lib/uk_planning_scraper/application.rb', line 41 def valid? return true if @authority_name && @council_reference && @info_url false end |