Class: ClickAndSend::XML
- Inherits:
-
Object
- Object
- ClickAndSend::XML
- Defined in:
- lib/click_and_send/xml.rb
Instance Method Summary collapse
-
#initialize(input, options = {}) ⇒ XML
constructor
A new instance of XML.
- #to_xml ⇒ Object
Constructor Details
#initialize(input, options = {}) ⇒ XML
Returns a new instance of XML.
3 4 5 6 |
# File 'lib/click_and_send/xml.rb', line 3 def initialize(input, = {}) @input = input @options = end |
Instance Method Details
#to_xml ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/click_and_send/xml.rb', line 8 def to_xml xml = Gyoku.xml(@input) if @options[:strip_inner_tags] @options[:strip_inner_tags].each { |tag| xml.gsub!("</#{tag}><#{tag}>", '') } end xml end |