Sha256: 1b9382ac159f12b037aeadfd7f62fd664ce3a8616bbfedc3f2c43fdb92db735f
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
module Fixer class Builder def initialize(node) @node = node end def build { :date => @node['time'], :rates => @node.xpath('./xmlns:Cube').map do |fx| { :currency => fx['currency'], :rate => fx['rate'] } end } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fixer-0.4 | lib/fixer/builder.rb |