Class: Renalware::Feeds::Files::Practices::ConvertXmlToCsv

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/feeds/files/practices/convert_xml_to_csv.rb

Defined Under Namespace

Classes: CountryNotFoundError

Constant Summary collapse

PRACTICE_ROLES =
%w(RO177 RO76).freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(xml_path) ⇒ Object



12
13
14
# File 'app/models/renalware/feeds/files/practices/convert_xml_to_csv.rb', line 12

def self.call(xml_path)
  new.call(xml_path)
end

Instance Method Details

#call(xml_path) ⇒ Object

Returns path to converted CSV file



17
18
19
# File 'app/models/renalware/feeds/files/practices/convert_xml_to_csv.rb', line 17

def call(xml_path)
  create_practice_csv_from_organisation_xml(xml_path)
end