lib/dineromail/notification.rb in dineromail-0.0.1 vs lib/dineromail/notification.rb in dineromail-0.0.2
- old
+ new
@@ -17,13 +17,13 @@
end
def self.from_xml(notification_xml)
notifications = []
notificaction_data = XmlSimple.xml_in(notification_xml)
- operations = notificaction_data['OPERACIONES'].first['OPERACION']
+ operations = notificaction_data['operaciones'].first['operacion']
operations.each do |operation|
- tipo = operation['TIPO'].first
- transaction_id = operation['ID'].first
+ tipo = operation['tipo'].first
+ transaction_id = operation['id'].first
notifications << self.new(transaction_id, tipo)
end
notifications
end
\ No newline at end of file