b2b_center_api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11f2cf076796a5c6c44c9de35d6c0166d568591c
|
4
|
+
data.tar.gz: b3ec78ed6e7e9557f9e882208315b0ef070c3e2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bd4a32f434df8cb120326d352a47a8761678f8229d53a12468e04fdfa8c5d461ebafa39b92830906798efaa19468150b69d2b402de0e5c5fb2f1e7764ff3f38
|
7
|
+
data.tar.gz: 200e2a5e2e4a1c6a1ad800f4d26ff4af8172b0ab14e35af214e290c19ee1bb7041d90f9f75939d28808e162904a3eea9923e3acc1d9347f1876584a9a740aca0
|
@@ -32,6 +32,9 @@ module B2bCenterApi
|
|
32
32
|
r = response.result
|
33
33
|
t = AuctionOffer.new
|
34
34
|
t.soap_client = client
|
35
|
+
t.auction_id = auction_id
|
36
|
+
t.firm_id = firm_id
|
37
|
+
t.offer_num = offer_num
|
35
38
|
t.final_price = convert(r[:final_price], :float)
|
36
39
|
t.final_price_notax = convert(r[:final_price_notax], :float)
|
37
40
|
t.final_bet_date = convert(r[:final_bet_date], :time)
|
@@ -21,6 +21,15 @@ module B2bCenterApi
|
|
21
21
|
"<#{self.class}: #{vars}>"
|
22
22
|
end
|
23
23
|
|
24
|
+
def to_h
|
25
|
+
hash = {}
|
26
|
+
vars = instance_variables
|
27
|
+
NO_INSPECT_ATTRS.each { |a| vars.delete(a) }
|
28
|
+
|
29
|
+
vars.each { |var| hash[var.to_s.delete('@').to_sym] = instance_variable_get(var) }
|
30
|
+
hash
|
31
|
+
end
|
32
|
+
|
24
33
|
private
|
25
34
|
|
26
35
|
def remote_auction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: b2b_center_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Archakov Aleksandr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|