ruby_ufebs 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e81db12371ba6b3c20ed2a153f3801062f51cbfa
4
- data.tar.gz: a194b452899ea8241cd8d8339f8644468c0be760
3
+ metadata.gz: 0d0777a14092fe09b778ae605cfe86368ea8ac3e
4
+ data.tar.gz: b34d1b67b06e1f01799595cdb115c467d59a7bdf
5
5
  SHA512:
6
- metadata.gz: c4ff2d84e4860c53fe83e7ae12e18b58a47f3fb5c6820e49d77209d5c8f2436c0e4a7db6143f9f29e3e4eb002af55c69c021db53c3ca93c611aa9a6ddf718dc9
7
- data.tar.gz: c8d34271ba79cf91f95e7c35e109262340c820fda12b9903bed141581c58ebbda2d19950610d9358228f362b697164d92473c723e012c65ad64aa98fa452d116
6
+ metadata.gz: c60024c2bc50a87daaa1d1018c1128d75454f9d38abc96eab8e66a52b5fa87367f604c936011d9245f5f7742d4ced06e8d077842c64b5ba04a7e81c17e6a8519
7
+ data.tar.gz: 16d49eae2248d136cc53539c788f7df265227c949327a72842494d6efafbc10a36380486b03f13e14a4b44db19a1d0dbf1ef3935e548b763f45297028016e53a
@@ -4,9 +4,10 @@ module Ufebs
4
4
  include HappyMapper
5
5
  include Fields::Header
6
6
 
7
+ register_namespace 'ed', "urn:cbr-ru:ed:v2.0"
7
8
  tag 'ED203'
9
+ namespace 'ed'
8
10
 
9
- attribute :xmlns, String, tag: 'xmlns'
10
11
  attribute :ed_receiver, String, tag: 'EDReceiver'
11
12
  attribute :status_code, String, tag: 'StatusCode'
12
13
  attribute :account, String, tag: 'Acc'
@@ -15,7 +16,6 @@ module Ufebs
15
16
  def initialize(params = {})
16
17
 
17
18
  params.each { |key, value| instance_variable_set("@#{key}".to_sym, value) }
18
- @xmlns = "urn:cbr-ru:ed:v2.0".freeze
19
19
  end
20
20
  end
21
21
  end
@@ -17,9 +17,10 @@ module Ufebs
17
17
  include HappyMapper
18
18
  include Ufebs::Fields::Header
19
19
 
20
+ register_namespace 'ed', "urn:cbr-ru:ed:v2.0"
20
21
  tag 'ED202'
22
+ namespace 'ed'
21
23
 
22
- attribute :xmlns, String, tag: 'xmlns'
23
24
  attribute :ed_receiver, String, tag: 'EDReceiver'
24
25
  attribute :ed_inqiery_code, String, tag: 'EDInquiryCode'
25
26
  has_one :ref, Ref, tag: 'EDRefID'
@@ -29,8 +30,6 @@ module Ufebs
29
30
  params.delete(:ref)
30
31
 
31
32
  params.each { |key, value| instance_variable_set("@#{key}".to_sym, value) }
32
-
33
- @xmlns = "urn:cbr-ru:ed:v2.0".freeze
34
33
  end
35
34
  end
36
35
  end
data/lib/ufebs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RubyUfebs
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_ufebs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Burdaev