Class: JapaneseAddressParser::NormalizeResult

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

Overview

JS: NormalizeResult。addr は M8(level 8)で埋まる(level 0-3 では nil)。

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#addrObject (readonly)

Returns the value of attribute addr

Returns:

  • (Object)

    the current value of addr



17
18
19
# File 'lib/japanese_address_parser/normalize_result.rb', line 17

def addr
  @addr
end

#cityObject (readonly)

Returns the value of attribute city

Returns:

  • (Object)

    the current value of city



17
18
19
# File 'lib/japanese_address_parser/normalize_result.rb', line 17

def city
  @city
end

#levelObject (readonly)

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



17
18
19
# File 'lib/japanese_address_parser/normalize_result.rb', line 17

def level
  @level
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



17
18
19
# File 'lib/japanese_address_parser/normalize_result.rb', line 17

def 
  @metadata
end

#otherObject (readonly)

Returns the value of attribute other

Returns:

  • (Object)

    the current value of other



17
18
19
# File 'lib/japanese_address_parser/normalize_result.rb', line 17

def other
  @other
end

#pointObject (readonly)

Returns the value of attribute point

Returns:

  • (Object)

    the current value of point



17
18
19
# File 'lib/japanese_address_parser/normalize_result.rb', line 17

def point
  @point
end

#prefObject (readonly)

Returns the value of attribute pref

Returns:

  • (Object)

    the current value of pref



17
18
19
# File 'lib/japanese_address_parser/normalize_result.rb', line 17

def pref
  @pref
end

#townObject (readonly)

Returns the value of attribute town

Returns:

  • (Object)

    the current value of town



17
18
19
# File 'lib/japanese_address_parser/normalize_result.rb', line 17

def town
  @town
end

Class Method Details

.newinstance

Parameters:

Returns:

  • (instance)


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

def self.new: (pref: String?, city: String?, town: String?, addr: String?, other: String, point: NormalizeResultPoint?, level: Integer, metadata: NormalizeResultMetadata) -> instance