Sha256: 317805d2304e4a9a1c7b0afdc47869f7c4749453d248c396d87073abf4135358
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 Bytes
Contents
class Zapi::ZapiResponse attr_reader :raw_response def initialize raw_response: @raw_response = raw_response end def raw_xml raw_response.body end def raw_hash Hash.from_xml raw_xml end def api_version _response.try(:[],'zapiVersion') end def method_name data.try(:[],'methodName') end def data _response.try(:[],'methodResponse') end def _response raw_hash.try(:[], 'response') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zaui_zapi-0.0.2 | lib/zapi_response.rb |
zaui_zapi-0.0.1 | lib/zapi_response.rb |