Class: FreshBooks::XmlSerializer::FixnumSerializer
- Inherits:
-
Object
- Object
- FreshBooks::XmlSerializer::FixnumSerializer
- Defined in:
- lib/freshbooks/xml_serializer/serializers.rb
Class Method Summary collapse
Class Method Details
.to_node(member_name, value) ⇒ Object
4 5 6 7 8 |
# File 'lib/freshbooks/xml_serializer/serializers.rb', line 4 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
10 11 12 |
# File 'lib/freshbooks/xml_serializer/serializers.rb', line 10 def self.to_value(xml_val) xml_val.text.to_i end |