Class: GetFx::Currencies

Inherits:
Object
  • Object
show all
Defined in:
lib/getFx.rb

Instance Method Summary collapse

Constructor Details

#initializeCurrencies



51
52
53
54
55
56
# File 'lib/getFx.rb', line 51

def initialize()
  doc = Nokogiri::HTML(open("https://s3.eu-west-2.amazonaws.com/cq-dev-storage/feed.xml"))
  select = "[@time='" + "2017-01-02" + "']"
  nodeset = doc.css("[currency]").map { |node| node['currency'] }
  return nodeset.uniq
end