Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add BigDecimal support to xmlrpc
  • Loading branch information
Alex Tambellini committed Apr 21, 2011
commit e09c2059ddacec82519f8996cc42cba5e8c191d4
3 changes: 3 additions & 0 deletions lib/xmlrpc/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ def conv2value(param)
when Float
@writer.tag("double", param.to_s)

when BigDecimal
@writer.tag("double", param.to_s("F"))

when Struct
h = param.members.collect do |key|
value = param[key]
Expand Down