Class: RubbishCollection::UnknownAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/rubbish_collection.rb

Instance Method Summary collapse

Constructor Details

#initialize(local_authority) ⇒ UnknownAdapter

Returns a new instance of UnknownAdapter.



14
15
16
# File 'lib/rubbish_collection.rb', line 14

def initialize local_authority
  self.local_authority = local_authority
end

Instance Method Details

#collection_times_at(postcode) ⇒ Object



18
19
20
# File 'lib/rubbish_collection.rb', line 18

def collection_times_at postcode
  raise "I don't know how to fetch times for #{local_authority.name} #{local_authority.map_it_id}"
end