module Rubillow::Models::Zpidable
Common data for responses containing zpid's
Attributes
zpid[RW]
@return [String] ZPID of property
Protected Instance Methods
extract_zpid(xml)
click to toggle source
@private
# File lib/rubillow/models/zpidable.rb, line 11 def extract_zpid(xml) # TODO: clean up this logic if !xml.xpath('//response/zpid').empty? selector = '//response/zpid' elsif !xml.xpath('//result/zpid').empty? selector = '//result/zpid' else selector = '//zpid' end @zpid = xml.xpath(selector).first.text end