Class: OldBill::V2::Neighbourhoods::Locator

Inherits:
Hashie::Dash
  • Object
show all
Defined in:
lib/oldbill/v2/neighbourhoods/locator.rb

Instance Method Summary collapse

Instance Method Details

#crimes_by_monthArrray<OldBill::V2::CrimeByMonth>

Returns:



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

#eventsArrray<OldBill::V2::Neighbourhoods::Events>

Returns:

  • (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_neighbourhoodO

Returns ldBill::V2::Neighbourhood].

Returns:

  • (O)

    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_officersArrray<OldBill::V2::Neighbourhoods::PoliceOfficers>

Returns:

  • (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