Class: FreshBooks::XmlSerializer::StringSerializer
- Inherits:
-
Object
- Object
- FreshBooks::XmlSerializer::StringSerializer
- Defined in:
- lib/freshbooks/xml_serializer/serializers.rb
Class Method Summary collapse
Class Method Details
.to_node(member_name, value) ⇒ Object
46 47 48 49 50 |
# File 'lib/freshbooks/xml_serializer/serializers.rb', line 46 def self.to_node(member_name, value) element = REXML::Element.new(member_name) element.text = value.to_s element end |
.to_value(xml_val) ⇒ Object
52 53 54 |
# File 'lib/freshbooks/xml_serializer/serializers.rb', line 52 def self.to_value(xml_val) xml_val.text.to_s end |