lib/kashflow_api/models/receipt.rb in kashflow_api-0.0.2 vs lib/kashflow_api/models/receipt.rb in kashflow_api-0.0.3

- old
+ new

@@ -1,9 +1,9 @@ module KashflowApi class Receipt < KashflowApi::SoapObject def self.find(search) result = KashflowApi.api.get_receipt(search) - self.build_from_soap(result.basic_hash["soap:Envelope"]["soap:Body"]["GetReceiptResponse"]["GetReceiptResult"]) + self.build_from_soap(result.hash[:envelope][:body][:get_receipt_response][:get_receipt_result]) end def save if @hash["InvoiceDBID"] == "0" insert_receipt \ No newline at end of file