class OfacSdn::Document
OfacSdn::Document
holds the XML OFAC document
Attributes
data_url[R]
xml_path[R]
Public Class Methods
call()
click to toggle source
# File lib/ofac_sdn/document.rb, line 10 def self.call new.call end
new()
click to toggle source
# File lib/ofac_sdn/document.rb, line 15 def initialize @data_url = 'https://www.treasury.gov/ofac/downloads/sdn.xml'.freeze @xml_path = open(data_url) end
Public Instance Methods
call()
click to toggle source
# File lib/ofac_sdn/document.rb, line 20 def call Nokogiri::XML(xml_path) end