Class: Integer
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_xml_rpc(xml_node) ⇒ Object
8 9 10 |
# File 'lib/rapuncel/core_ext/integer.rb', line 8 def self.from_xml_rpc xml_node xml_node.text.strip.to_i #calling to_i on the text between the i4 or int tags end |
Instance Method Details
#to_xml_rpc(b = Rapuncel.get_builder) ⇒ Object
2 3 4 5 6 |
# File 'lib/rapuncel/core_ext/integer.rb', line 2 def to_xml_rpc b = Rapuncel.get_builder b.int self.to_s b.to_xml end |