Class: GetFx::Currencies
- Inherits:
-
Object
- Object
- GetFx::Currencies
- Defined in:
- lib/getFx.rb
Instance Method Summary collapse
-
#initialize ⇒ Currencies
constructor
A new instance of Currencies.
Constructor Details
#initialize ⇒ Currencies
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 |