Class: B2bCenterApi::WebService::Types::AuctionParticipantsProtocol

Inherits:
BaseType
  • Object
show all
Defined in:
lib/b2b_center_api/web_service/types/auction_participants_protocol.rb

Overview

Участник аукциона

Constant Summary

Constants inherited from BaseType

BaseType::NO_INSPECT_ATTRS

Instance Attribute Summary collapse

Attributes inherited from BaseType

#date_fields, #soap_client

Class Method Summary collapse

Methods inherited from BaseType

#inspect, #to_h

Methods included from B2bCenterApi::WebService::TypeCast

included

Instance Attribute Details

#dateDate



11
12
13
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 11

def date
  @date
end

#fileString



17
18
19
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 17

def file
  @file
end

#numberString



8
9
10
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 8

def number
  @number
end

#placeString



14
15
16
# File 'lib/b2b_center_api/web_service/types/auction_participants_protocol.rb', line 14

def place
  @place
end

#procedure_stage_dateTime



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_dateDate



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