Class: KashflowApi::NominalCode

Inherits:
SoapObject show all
Defined in:
lib/kashflow_api/models/nominal_code.rb

Instance Attribute Summary

Attributes inherited from SoapObject

#hash

Class Method Summary collapse

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

.allObject



3
4
5
6
7
8
9
10
# File 'lib/kashflow_api/models/nominal_code.rb', line 3

def self.all
    result = KashflowApi.api.get_nominal_codes
    codes = []
    result.basic_hash["soap:Envelope"]["soap:Body"]["GetNominalCodesResponse"]["GetNominalCodesResult"]["NominalCode"].each do |code|
        codes.push(self.build_from_soap(code))
    end
    codes
end