Skip to content

Instantly share code, notes, and snippets.

@pavel-manylov
Created January 28, 2011 12:28
Show Gist options
  • Save pavel-manylov/800196 to your computer and use it in GitHub Desktop.
Save pavel-manylov/800196 to your computer and use it in GitHub Desktop.
ArrayOfInt for BetFair API
class Array
def to_soap_array_of_int
result=Array.new
self.each do |val|
result.push({"int"=>val.to_i})
end
result
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment