Sha256: 8ff44fa901e0cfcfd5dd18b5dac6b9db8869411caab507e1dfc4fb5342218502

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

module CitiesInTurkey
  class District
    def initialize(name, quarters)
      @name = name
      @quarters = quarters
    end

    def quarters
      @quarters.map { |quarter| Quarter.new(quarter['name']) }.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/district.rb