Class: OldBill::V2::Neighbourhoods::Locator
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- OldBill::V2::Neighbourhoods::Locator
- Defined in:
- lib/oldbill/v2/neighbourhoods/locator.rb
Instance Method Summary collapse
- #crimes_by_month ⇒ Arrray<OldBill::V2::CrimeByMonth>
- #events ⇒ Arrray<OldBill::V2::Neighbourhoods::Events>
-
#full_neighbourhood ⇒ O
LdBill::V2::Neighbourhood].
- #police_officers ⇒ Arrray<OldBill::V2::Neighbourhoods::PoliceOfficers>
Instance Method Details
#crimes_by_month ⇒ Arrray<OldBill::V2::CrimeByMonth>
12 13 14 |
# File 'lib/oldbill/v2/neighbourhoods/locator.rb', line 12 def crimes_by_month @crimes_by_month ||= session.crimes_by_month(self.force, self.neighbourhood) end |
#events ⇒ Arrray<OldBill::V2::Neighbourhoods::Events>
22 23 24 |
# File 'lib/oldbill/v2/neighbourhoods/locator.rb', line 22 def events @events ||= session.events(self.force, self.neighbourhood) end |
#full_neighbourhood ⇒ O
Returns ldBill::V2::Neighbourhood].
17 18 19 |
# File 'lib/oldbill/v2/neighbourhoods/locator.rb', line 17 def full_neighbourhood @full_neighbourhood ||= session.neighbourhood(self.force, self.neighbourhood) end |
#police_officers ⇒ Arrray<OldBill::V2::Neighbourhoods::PoliceOfficers>
27 28 29 |
# File 'lib/oldbill/v2/neighbourhoods/locator.rb', line 27 def police_officers @police_officers ||= session.police_officers(self.force, self.neighbourhood) end |