Sha256: be3b7af14c212b4ff32535e76a10e1dac4c1f28905576be29117505462a041e7
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
module Esendex class VoiceMessage attr_accessor :to, :body, :from def initialize(to, body, from = nil) @to = to @body = body @from = from end def xml_node doc = Message.new(to, body, from).xml_node lang = Nokogiri::XML::Node.new 'lang', doc lang.content = 'en-GB' doc.add_child(lang) type = Nokogiri::XML::Node.new 'type', doc type.content = 'Voice' doc.add_child(type) doc end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
esendex-0.6.0 | lib/esendex/voice_message.rb |
esendex-0.5.0 | lib/esendex/voice_message.rb |