class TorgApi::Api::Fias

Адреса (ФИАС) системы ТОРГ

Attributes

aoid[RW]

@return [Guid] Guid адреса

houseid[RW]

@return [Guid] Guid дома

id[RW]

@return [Integer] id

name[RW]

@return [String] Адрес

okato[RW]

@return [Integer] ОКАТО

oktmo[RW]

@return [Integer] ОКТМО

postalcode[RW]

@return [Integer] Почтовый код

regioncode[RW]

@return [Integer] Код региона

Public Class Methods

find(id) click to toggle source
# File lib/torg_api/api/fias.rb, line 25
def find(id)
  responce = JSON.parse(
    torg_resource["fias/#{id}"].get(
      accept: :json,
      content_type: :json,
      format: :json
    ),
    symbolize_names: true
  )
  new(responce)
end