Class: OfacSdn::Read
- Inherits:
-
Object
- Object
- OfacSdn::Read
- Defined in:
- lib/ofac_sdn.rb
Overview
OfacSdn::Read.call creates the SDN Ruby Hash
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
13 14 15 |
# File 'lib/ofac_sdn.rb', line 13 def call new.call(document) end |
.document ⇒ Object
17 18 19 |
# File 'lib/ofac_sdn.rb', line 17 def document @document ||= Document.call end |
.publish_date ⇒ Object
21 22 23 |
# File 'lib/ofac_sdn.rb', line 21 def publish_date document.css('sdnList publshInformation Publish_Date').text end |
.record_count ⇒ Object
25 26 27 |
# File 'lib/ofac_sdn.rb', line 25 def record_count document.css('sdnList publshInformation Record_Count').text.to_i end |