Sha256: 74e510bac7355e8fab383171517113464753f501217cfdc267d040c8582da65a

Contents?: true

Size: 810 Bytes

Versions: 1

Compression:

Stored size: 810 Bytes

Contents

# frozen_string_literal: true

module Jpostcode
  class Address
    attr_reader :zip_code, :prefecture, :prefecture_kana, :prefecture_code,
                :city, :city_kana, :town, :town_kana, :street,
                :office_name, :office_name_kana

    def initialize(data)
      @zip_code         = data['zip_code']
      @prefecture       = data['prefecture']
      @prefecture_kana  = data['prefecture_kana']
      @prefecture_code  = data['prefecture_code']
      @city             = data['city']
      @city_kana        = data['city_kana']
      @town             = data['town']
      @town_kana        = data['town_kana']
      @street           = data['street']
      @office_name      = data['office_name']
      @office_name_kana = data['office_name_kana']
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jpostcode-ait-0.1.1 lib/jpostcode/address.rb