class Kamome::Models::Jigyosho

CSV Model: 大口事業所個別番号データ @see www.post.japanpost.jp/zipcode/dl/jigyosyo/index-zip.html @see www.post.japanpost.jp/zipcode/dl/jigyosyo/readme.html

Attributes

city[RW]

@!attribute [rw] city

市区町村名(漢字)
@return [String]
code[RW]

@!attribute [rw] code

 大口事業所の所在地のJISコード
@return [String]
company_name[RW]

@!attribute [rw] name

大口事業所名(漢字)
@return [String]
company_name_kana[RW]

@!attribute [rw] name_kana

大口事業所名(カナ)
@return [String]
has_post_office_box[RW]

@!attribute [rw] post_office_box

私書箱: true, 大口事業所: false
@return [Boolean]
japanpost_office_name[RW]

@!attribute [rw] japanpost_office_name

取扱局
@return [String]
multiple[RW]

@!attribute [rw] required_chome

複数番号の有無
* 「0」複数番号無し
* 「1」複数番号を設定している場合の個別番号の1
* 「2」複数番号を設定している場合の個別番号の2
* 「3」複数番号を設定している場合の個別番号の3
@return [Integer]
post_office_box[RW]

@!attribute [rw] post_office_box

私書箱名
@return [String]
prefecture[RW]

@!attribute [rw] prefecture

都道府県名(漢字)
@return [String]
state[RW]

@!attribute [rw] state

修正コード
* 「0」修正なし
* 「1」新規追加
* 「5」廃止
@return [Integer]
street[RW]

@!attribute [rw] street

小字名、丁目、番地等(漢字)
@return [String]
town[RW]

@!attribute [rw] town

町域名(漢字)
@return [String]
zipcode[RW]

@!attribute [rw] town

大口事業所個別番号
@return [String]

Public Class Methods

new(params = {}) click to toggle source
# File lib/kamome/models/jigyosho.rb, line 81
def initialize(params = {})
  params.each do |key, value|
    public_send("#{key}=", value)
  end
end

Public Instance Methods

attributes() click to toggle source
# File lib/kamome/models/jigyosho.rb, line 87
def attributes
  {
    code: code,
    company_name_kana: company_name_kana,
    company_name: company_name,
    prefecture: prefecture,
    city: city,
    town: town,
    street: street,
    post_office_box: post_office_box,
    zipcode: zipcode,
    japanpost_office_name: japanpost_office_name,
    has_post_office_box: has_post_office_box,
    multiple: multiple,
    state: state
  }
end