Class: Esendex::Requests::Messages
- Inherits:
-
Object
- Object
- Esendex::Requests::Messages
- Defined in:
- lib/xednese/requests/messages.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Messages
constructor
A new instance of Messages.
- #serialise ⇒ Object
Constructor Details
#initialize(args) ⇒ Messages
Returns a new instance of Messages.
4 5 6 |
# File 'lib/xednese/requests/messages.rb', line 4 def initialize(args) @args = args end |
Instance Method Details
#serialise ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/xednese/requests/messages.rb', line 8 def serialise Nokogiri::XML::Builder.new(encoding: 'utf-8') do |xml| xml. { xml.accountreference @args[:account_reference] @args[:messages].each do || xml. { xml.to [:to] xml.body [:body] } end } end.to_xml end |