class TorgApi::Api::Okdp
Справочник кодов ОКДП
Attributes
code[RW]
@return [Integer] Код
fullname[RW]
@return [Integer] Полное наименование
id[RW]
@return [Integer] id
title[RW]
@return [Integer] Наименование
Public Class Methods
find(id)
click to toggle source
# File lib/torg_api/api/okdp.rb, line 17 def find(id) responce = JSON.parse( torg_resource["okdp/show"].get( params: { id: id }, accept: :json, content_type: :json, format: :json ), symbolize_names: true ) new(responce[:okdp]) end
find_old_code(new_value)
click to toggle source
# File lib/torg_api/api/okdp.rb, line 30 def find_old_code(new_value) JSON.parse( torg_resource["okdp/reform_old_value"].get( params: { new_value: new_value }, accept: :json, content_type: :json, format: :json ), symbolize_names: true ) end