Class: JapaneseAddressParser::NormalizeResultMetadata

Inherits:
Data
  • Object
show all
Defined in:
lib/japanese_address_parser/normalize_result.rb,
sig/normalize_result.rbs

Overview

JS: NormalizeResultMetadata。VO に昇格しない生データの逃がし道(working_agreement §1-3)。 prefecture は cities を除いた Hash、machi_aza は csv_ranges を除いた Hash(M2 utils)。 chiban / rsdt は M8 で埋まる(level 0-3 では nil)。

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#chibanObject (readonly)

Returns the value of attribute chiban

Returns:

  • (Object)

    the current value of chiban



13
14
15
# File 'lib/japanese_address_parser/normalize_result.rb', line 13

def chiban
  @chiban
end

#cityObject (readonly)

Returns the value of attribute city

Returns:

  • (Object)

    the current value of city



13
14
15
# File 'lib/japanese_address_parser/normalize_result.rb', line 13

def city
  @city
end

#inputObject (readonly)

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



13
14
15
# File 'lib/japanese_address_parser/normalize_result.rb', line 13

def input
  @input
end

#machi_azaObject (readonly)

Returns the value of attribute machi_aza

Returns:

  • (Object)

    the current value of machi_aza



13
14
15
# File 'lib/japanese_address_parser/normalize_result.rb', line 13

def machi_aza
  @machi_aza
end

#prefectureObject (readonly)

Returns the value of attribute prefecture

Returns:

  • (Object)

    the current value of prefecture



13
14
15
# File 'lib/japanese_address_parser/normalize_result.rb', line 13

def prefecture
  @prefecture
end

#rsdtObject (readonly)

Returns the value of attribute rsdt

Returns:

  • (Object)

    the current value of rsdt



13
14
15
# File 'lib/japanese_address_parser/normalize_result.rb', line 13

def rsdt
  @rsdt
end

Class Method Details

.newinstance

Parameters:

  • input: (String)
  • prefecture: (Hash[Symbol, untyped], nil)
  • city: (Data::SingleCity, nil)
  • machi_aza: (Hash[Symbol, untyped], nil)
  • chiban: (Object)
  • rsdt: (Object)

Returns:

  • (instance)


11
# File 'sig/normalize_result.rbs', line 11

def self.new: (input: String, prefecture: Hash[Symbol, untyped]?, city: Data::SingleCity?, machi_aza: Hash[Symbol, untyped]?, chiban: untyped, rsdt: untyped) -> instance

Instance Method Details

#to_hHash[Symbol, untyped]

Returns:

  • (Hash[Symbol, untyped])


12
# File 'sig/normalize_result.rbs', line 12

def to_h: () -> Hash[Symbol, untyped]