lib/epics/hpb.rb in epics-1.5.1 vs lib/epics/hpb.rb in epics-1.5.2
- old
+ new
@@ -1,29 +1,26 @@
class Epics::HPB < Epics::GenericRequest
-
def root
"ebicsNoPubKeyDigestsRequest"
end
def header
- {
- :@authenticate => true,
- static: {
- "HostID" => host_id,
- "Nonce" => nonce,
- "Timestamp" => timestamp,
- "PartnerID" => partner_id,
- "UserID" => user_id,
- "Product" => {
- :@Language => "de",
- :content! => "EPICS - a ruby ebics kernel"
- },
- "OrderDetails" => {
- "OrderType" => "HPB",
- "OrderAttribute" => "DZHNN"
- },
- "SecurityMedium" => "0000"
- },
- "mutable/" => ""
- }
+ Nokogiri::XML::Builder.new do |xml|
+ xml.header(authenticate: true) {
+ xml.static {
+ xml.HostID host_id
+ xml.Nonce nonce
+ xml.Timestamp timestamp
+ xml.PartnerID partner_id
+ xml.UserID user_id
+ xml.Product("EPICS - a ruby ebics kernel", 'Language' => 'de')
+ xml.OrderDetails {
+ xml.OrderType 'HPB'
+ xml.OrderAttribute 'DZHNN'
+ }
+ xml.SecurityMedium '0000'
+ }
+ xml.mutable ''
+ }
+ end.doc.root
end
end