Class: BreadMachine::SecureTrading::CustomerInfoEnrolmentXml

Inherits:
Object
  • Object
show all
Defined in:
lib/breadmachine/secure_trading/customer_info_enrolment_xml.rb

Instance Method Summary collapse

Constructor Details

#initialize(customer_info) ⇒ CustomerInfoEnrolmentXml

Returns a new instance of CustomerInfoEnrolmentXml.



6
7
8
# File 'lib/breadmachine/secure_trading/customer_info_enrolment_xml.rb', line 6

def initialize(customer_info)
  @customer_info = customer_info
end

Instance Method Details

#to_xmlObject



10
11
12
13
14
15
16
# File 'lib/breadmachine/secure_trading/customer_info_enrolment_xml.rb', line 10

def to_xml
  xml = Builder::XmlMarkup.new(:indent => 2)
  xml.CustomerInfo {
    xml.Accept @customer_info.accept
    xml.UserAgent @customer_info.user_agent
  }
end