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: c01d388e69d03c7577e73443eb76e61709674a0e
4
- data.tar.gz: 1fe96e984765447f9d45f4db55fdd577d71f906f
3
+ metadata.gz: 11f2cf076796a5c6c44c9de35d6c0166d568591c
4
+ data.tar.gz: b3ec78ed6e7e9557f9e882208315b0ef070c3e2b
5
5
  SHA512:
6
- metadata.gz: 8259a0e35dd79ecc5d02c6ecc4145a0cdca7c2da241bee710496a43584cfa43f8ef7215237bc609f37797c15565e25b43c3b87c8719979b8e2b838c0ed147210
7
- data.tar.gz: 48108158f4e40b675df1e6ecaa91bbc9c4d4b250fb3a53a86e5cf068fb6f3fe9090856141e0ab24e83daa5c893aaf12af375950b5f85730dad4babf245489bbb
6
+ metadata.gz: 1bd4a32f434df8cb120326d352a47a8761678f8229d53a12468e04fdfa8c5d461ebafa39b92830906798efaa19468150b69d2b402de0e5c5fb2f1e7764ff3f38
7
+ data.tar.gz: 200e2a5e2e4a1c6a1ad800f4d26ff4af8172b0ab14e35af214e290c19ee1bb7041d90f9f75939d28808e162904a3eea9923e3acc1d9347f1876584a9a740aca0
@@ -1,3 +1,3 @@
1
1
  module B2bCenterApi
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -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.3
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-07 00:00:00.000000000 Z
11
+ date: 2015-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler