Showing 1 of 1 total issue
Method create_by_xml
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.create_by_xml(xml)
doc = Nokogiri::XML(xml)
code = doc.xpath("//transaction/code").text
order_id = doc.xpath("//reference").text
status = doc.xpath("//status").text.to_i