Class: B2bCenterApi::WebService::Types::AuctionParticipantsProtocol
- Inherits:
-
BaseType
- Object
- BaseType
- B2bCenterApi::WebService::Types::AuctionParticipantsProtocol
- Defined in:
- lib/b2b_center_api/web_service/types/auction_participants_protocol.rb
Overview
Участник аукциона
Constant Summary
Constants inherited from BaseType
Instance Attribute Summary collapse
-
#date ⇒ Date
Дата составления протокола.
-
#file ⇒ String
Ссылка на скачивание файла протокола, если организатор загрузил протокол.
-
#number ⇒ String
Номер протокола.
-
#place ⇒ String
Место составления протокола.
-
#procedure_stage_date ⇒ Time
Дата и время проведения этапа процедуры.
-
#sign_protocol_date ⇒ Date
Дата подписания протокола.
Attributes inherited from BaseType
Class Method Summary collapse
Methods inherited from BaseType
Methods included from B2bCenterApi::WebService::TypeCast
Instance Attribute Details
#date ⇒ Date
11 12 13 |
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 11 def date @date end |
#file ⇒ String
17 18 19 |
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 17 def file @file end |
#number ⇒ String
8 9 10 |
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 8 def number @number end |
#place ⇒ String
14 15 16 |
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 14 def place @place end |
#procedure_stage_date ⇒ Time
20 21 22 |
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 20 def procedure_stage_date @procedure_stage_date end |
#sign_protocol_date ⇒ Date
23 24 25 |
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 23 def sign_protocol_date @sign_protocol_date end |
Class Method Details
.from_response(response) ⇒ ParticipantsProtocol
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 26 def self.from_response(response) r = response.result[:participants_protocol] return if r.nil? protocol = AuctionParticipantsProtocol.new protocol.number = r[:number] protocol.date = convert r[:date], :date protocol.place = r[:place] protocol.file = r[:file] protocol.procedure_stage_date = convert r[:procedure_stage_date], :time protocol.sign_protocol_date = convert r[:sign_protocol_date], :date protocol end |