class GetFx::Currencies

Public Class Methods

new() click to toggle source
# File lib/getFx.rb, line 52
def initialize()
  @doc = Nokogiri::HTML(open("https://s3.eu-west-2.amazonaws.com/cq-dev-storage/feed.xml"))
end

Public Instance Methods

get() click to toggle source
# File lib/getFx.rb, line 56
def get()
  select = "[@time='" + "2017-01-02" + "']"
  nodeset = @doc.css("[currency]").map { |node| node['currency'] }
  return nodeset.uniq
end