Class: KashflowApi::Quote
- Inherits:
-
Invoice
- Object
- SoapObject
- Invoice
- KashflowApi::Quote
- Defined in:
- lib/kashflow_api/models/quote.rb
Instance Attribute Summary
Attributes inherited from SoapObject
Class Method Summary collapse
Methods inherited from Invoice
#customer, find, #save, #to_xml
Methods inherited from SoapObject
build_from_soap, #initialize, #method_missing
Constructor Details
This class inherits a constructor from KashflowApi::SoapObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class KashflowApi::SoapObject
Class Method Details
.find_by_id(search) ⇒ Object
3 4 5 6 |
# File 'lib/kashflow_api/models/quote.rb', line 3 def self.find_by_id(search) result = KashflowApi.api.get_quote_by_id(search) self.build_from_soap(result.basic_hash["soap:Envelope"]["soap:Body"]["GetQuoteByIDResponse"]["GetQuoteByIDResult"]) end |