Class: TorgApi::Api::PlanLot

Inherits:
Base
  • Object
show all
Defined in:
lib/torg_api/api/plan_lot.rb

Overview

Планирование

Constant Summary

Constants inherited from Base

Base::REMOVE_HASH_ATTRS

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

attr_accessor, attributes, #initialize, #to_h, torg_resource

Constructor Details

This class inherits a constructor from TorgApi::Base

Instance Attribute Details

#additional_numInteger

Номер доп. соглашения

Returns:

  • (Integer)


98
99
100
# File 'lib/torg_api/api/plan_lot.rb', line 98

def additional_num
  @additional_num
end

#additional_toString

ГУИД основной закупки

Returns:

  • (String)


86
87
88
# File 'lib/torg_api/api/plan_lot.rb', line 86

def additional_to
  @additional_to
end

#announce_dateDate

Дата объявления

Returns:

  • (Date)


54
55
56
# File 'lib/torg_api/api/plan_lot.rb', line 54

def announce_date
  @announce_date
end

#charge_dateDate

Дата направления поручения

Returns:

  • (Date)


118
119
120
# File 'lib/torg_api/api/plan_lot.rb', line 118

def charge_date
  @charge_date
end

#commission_idInteger

ИД комиссии

Returns:

  • (Integer)


74
75
76
# File 'lib/torg_api/api/plan_lot.rb', line 74

def commission_id
  @commission_id
end

#department_idInteger

ИД организатора

Returns:

  • (Integer)


34
35
36
# File 'lib/torg_api/api/plan_lot.rb', line 34

def department_id
  @department_id
end

#etp_address_idInteger

ИД адреса ЭТП, на которой будет объявлена закупка

Returns:

  • (Integer)


50
51
52
# File 'lib/torg_api/api/plan_lot.rb', line 50

def etp_address_id
  @etp_address_id
end

#explanations_docString

Обосновывающий док-т (только для ЕИ)

Returns:

  • (String)


58
59
60
# File 'lib/torg_api/api/plan_lot.rb', line 58

def explanations_doc
  @explanations_doc
end

#gkpz_yearInteger

Год ГКПЗ

Returns:

  • (Integer)


18
19
20
# File 'lib/torg_api/api/plan_lot.rb', line 18

def gkpz_year
  @gkpz_year
end

#guidString

ГУИД лота

Returns:

  • (String)

    ]



10
11
12
# File 'lib/torg_api/api/plan_lot.rb', line 10

def guid
  @guid
end

#idInteger

Returns id.

Returns:

  • (Integer)

    id



6
7
8
# File 'lib/torg_api/api/plan_lot.rb', line 6

def id
  @id
end

#lot_nameString

Наименование лота

Returns:

  • (String)


30
31
32
# File 'lib/torg_api/api/plan_lot.rb', line 30

def lot_name
  @lot_name
end

#main_direction_idInteger

Главное направление

Returns:

  • (Integer)


102
103
104
# File 'lib/torg_api/api/plan_lot.rb', line 102

def main_direction_id
  @main_direction_id
end

#num_lotInteger

Номер лота

Returns:

  • (Integer)


26
27
28
# File 'lib/torg_api/api/plan_lot.rb', line 26

def num_lot
  @num_lot
end

#num_tenderInteger

Номер закупки

Returns:

  • (Integer)


22
23
24
# File 'lib/torg_api/api/plan_lot.rb', line 22

def num_tender
  @num_tender
end

#order1352_idInteger

Типы закупок из постановления правительства №1352 от 11.12.2014

Returns:

  • (Integer)


106
107
108
# File 'lib/torg_api/api/plan_lot.rb', line 106

def order1352_id
  @order1352_id
end

#plan_annual_limitsArray

Готовые лимиты

Returns:

  • (Array)


126
127
128
# File 'lib/torg_api/api/plan_lot.rb', line 126

def plan_annual_limits
  @plan_annual_limits
end

#plan_lot_contractorsArray

Планируемые участники

Returns:

  • (Array)


134
135
136
# File 'lib/torg_api/api/plan_lot.rb', line 134

def plan_lot_contractors
  @plan_lot_contractors
end

#plan_specificationsArray

Спецификации

Returns:

  • (Array)


130
131
132
# File 'lib/torg_api/api/plan_lot.rb', line 130

def plan_specifications
  @plan_specifications
end

#point_clauseString

Пункт положения

Returns:

  • (String)


62
63
64
# File 'lib/torg_api/api/plan_lot.rb', line 62

def point_clause
  @point_clause
end

#preselection_guidString

GUID закупки предварительного отбора

Returns:

  • (String)


110
111
112
# File 'lib/torg_api/api/plan_lot.rb', line 110

def preselection_guid
  @preselection_guid
end

#protocolHash

Протокол

Returns:

  • (Hash)


122
123
124
# File 'lib/torg_api/api/plan_lot.rb', line 122

def protocol
  @protocol
end

#protocol_idInteger

ИД протокола

Returns:

  • (Integer)


66
67
68
# File 'lib/torg_api/api/plan_lot.rb', line 66

def protocol_id
  @protocol_id
end

#regulation_item_idInteger

Ссылка на пункт положения

Returns:

  • (Integer)


114
115
116
# File 'lib/torg_api/api/plan_lot.rb', line 114

def regulation_item_id
  @regulation_item_id
end

#root_customer_idInteger

ИД рутового заказчика

Returns:

  • (Integer)


82
83
84
# File 'lib/torg_api/api/plan_lot.rb', line 82

def root_customer_id
  @root_customer_id
end

#sme_type_idInteger

Отношение к участию субъектов малого и среднего предпринимательства

Returns:

  • (Integer)


94
95
96
# File 'lib/torg_api/api/plan_lot.rb', line 94

def sme_type_id
  @sme_type_id
end

#stateInteger

Состояние в ГКПЗ: 0 - внеплан, 1 - план

Returns:

  • (Integer)


90
91
92
# File 'lib/torg_api/api/plan_lot.rb', line 90

def state
  @state
end

#status_idInteger

ИД статуса

Returns:

  • (Integer)


70
71
72
# File 'lib/torg_api/api/plan_lot.rb', line 70

def status_id
  @status_id
end

#subject_type_idInteger

Предмет закупки

Returns:

  • (Integer)


46
47
48
# File 'lib/torg_api/api/plan_lot.rb', line 46

def subject_type_id
  @subject_type_id
end

#tender_type_explanationsString

Обоснование выбора способа закупки

Returns:

  • (String)


42
43
44
# File 'lib/torg_api/api/plan_lot.rb', line 42

def tender_type_explanations
  @tender_type_explanations
end

#tender_type_idInteger

ИД способа закупки

Returns:

  • (Integer)


38
39
40
# File 'lib/torg_api/api/plan_lot.rb', line 38

def tender_type_id
  @tender_type_id
end

#user_idInteger

ИД пользователя

Returns:

  • (Integer)


78
79
80
# File 'lib/torg_api/api/plan_lot.rb', line 78

def user_id
  @user_id
end

#versionInteger

Версия записи (0 - текущая)

Returns:

  • (Integer)


14
15
16
# File 'lib/torg_api/api/plan_lot.rb', line 14

def version
  @version
end

Class Method Details

.find(plan_lot_id) ⇒ PlanLot

Поиск лота из планирования по id

Parameters:

  • plan_lot_id (Integer)

    id закупки

Returns:

  • (PlanLot)

    возвращает объект лот планирования



141
142
143
144
145
146
147
148
149
150
151
# File 'lib/torg_api/api/plan_lot.rb', line 141

def find(plan_lot_id)
  responce = JSON.parse(
    torg_resource["plan_lots/#{plan_lot_id}"].get(
      accept: :json,
      content_type: :json,
      format: :json
    ),
    symbolize_names: true
  )
  new(responce[:plan_lot])
end