Class: BreadMachine::SecureTrading::CustomerInfoEnrolmentXml
- Inherits:
-
Object
- Object
- BreadMachine::SecureTrading::CustomerInfoEnrolmentXml
- Defined in:
- lib/breadmachine/secure_trading/customer_info_enrolment_xml.rb
Instance Method Summary collapse
-
#initialize(customer_info) ⇒ CustomerInfoEnrolmentXml
constructor
A new instance of CustomerInfoEnrolmentXml.
- #to_xml ⇒ Object
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_xml ⇒ Object
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 |