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