Class: VatInfo::Request::UnreliablePayer
- Inherits:
-
VatInfo::Request
- Object
- VatInfo::Request
- VatInfo::Request::UnreliablePayer
- Defined in:
- lib/vat_info/request/unreliable_payer.rb
Constant Summary
Constants inherited from VatInfo::Request
Instance Attribute Summary collapse
-
#vat_ids ⇒ Object
Returns the value of attribute vat_ids.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(*vat_ids) ⇒ UnreliablePayer
constructor
A new instance of UnreliablePayer.
Methods inherited from VatInfo::Request
Constructor Details
#initialize(*vat_ids) ⇒ UnreliablePayer
Returns a new instance of UnreliablePayer.
6 7 8 |
# File 'lib/vat_info/request/unreliable_payer.rb', line 6 def initialize(*vat_ids) self.vat_ids = vat_ids end |
Instance Attribute Details
#vat_ids ⇒ Object
Returns the value of attribute vat_ids.
4 5 6 |
# File 'lib/vat_info/request/unreliable_payer.rb', line 4 def vat_ids @vat_ids end |
Instance Method Details
#body ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/vat_info/request/unreliable_payer.rb', line 10 def body Nokogiri::XML::Builder.new('encoding' => 'UTF-8') do |xml| xml.StatusNespolehlivyPlatceRequest(xmlns: 'http://adis.mfcr.cz/rozhraniCRPDPH/') do vat_ids.each { |vat_id| xml.dic(vat_id) } end end.doc end |