Sha256: c131fea434e171215f73f4fd8c7b73d65ab763b141c9378c8fe6f63f714f1f59
Contents?: true
Size: 292 Bytes
Versions: 1
Compression:
Stored size: 292 Bytes
Contents
module CitiesInTurkey class Town def initialize(name, districts) @name = name @districts = districts end def districts @districts.map { |district| District.new(district['name'], district['quarters']) }.to_a end def name @name end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cities-in-turkey-0.2.0 | lib/cities_in_turkey/town.rb |