Sha256: 04dc42f5a27ea37687e47d8266eb74f55ea44c91fc9ab86699927f06c827f47c

Contents?: true

Size: 497 Bytes

Versions: 6

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

module JpLocalGov
  class LocalGov
    attr_reader :code, :prefecture_code, :prefecture, :prefecture_kana, :city, :city_kana, :prefecture_capital

    def initialize(data)
      @code = data[:code]
      @prefecture_code = data[:prefecture_code]
      @prefecture = data[:prefecture]
      @prefecture_kana = data[:prefecture_kana]
      @city = data[:city]
      @city_kana = data[:city_kana]
      @prefecture_capital = data[:prefecture_capital]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jp_local_gov-1.0.0 lib/jp_local_gov/local_gov.rb
jp_local_gov-0.3.1 lib/jp_local_gov/local_gov.rb
jp_local_gov-0.3.0 lib/jp_local_gov/local_gov.rb
jp_local_gov-0.2.1 lib/jp_local_gov/local_gov.rb
jp_local_gov-0.2.0 lib/jp_local_gov/local_gov.rb
jp_local_gov-0.1.0 lib/jp_local_gov/local_gov.rb